Calculation of Totals and Comparisons