Renaming costs to prices and removing one level of looping in item total calculation