Confidence interval calculation formula