I'm fixing a software defect that occurs 1 in *n* test runs. If I want to know that the probability of it being fixed is *>= p* for some *0 <= p < 1*, how many times, *m*, do I need to run the test successfully (without the defect occurring)?



Chance of something being fixed
According to my statistics final which I took yesterday, the answer should be   

$m=\lceil 2\left(1-\frac{1}{n}\right)\text{InverseErf}^2[1-p]\rceil$ where InverseErf[*x*] is the [Inverse Error Function](http://en.wikipedia.org/wiki/Error_function#Inverse_function).  



