C = 1 - R^N. Where C is confidence level, N is the total number of test samples and R is reliability. This equation is a simplification from the more complex binomial distribution for the special case where no failures are reported. It is also useful to write this equation as N = ln(1-C)/ln(R) so you can determine the necessary sample size N to demonstrate R% reliability with C% confidence.