Marginal Average Cost Formula Calculus