calculate_limit_upper function

Calculate the upper limit of a confidence interval