total cost var