to calculate the variable costs