Refactored total_calculation methods