Computing confidence intervals with the binomial distribution