calc_total_estimate function

Calculate total estimate