Revenue Function From Demand Function