adjusted totaling for grand total cost