An Investigation on Effects of Tolerance and Cost on Failure Rate using Computer Simulation