Calculating the Probability of Defects