Add functionality to do total calories over range and compute an average