add calculate_total helper method