Marginal Cost Formula