made formulas for the confidence interval