formula to calculate total variable cost with example