calculate_total added