which of the following is the correct way to calculate total cost?