calc_total_ci function

Calculate confidence limits