Reference: The calculations are the customary ones based on the normal approximation to the binomial distribution. See for example Hypothesis Testing: One-Sample Inference - One-Sample Inference for a Binomial Proportion in Bernard Rosner's Fundamentals of Biostatistics