calculates costs associated with meal