Open a cafe and work out how many cups to sell to come out ahead.
The cost of one more cup of ☕ coffee is the marginal cost. It climbs as the cups pile up. While the price beats that cost, each sale adds profit. Stop where the two become equal — that rule is the formula below.
For example, a cup costs 2,000 won to make and sells for 4,500, so each cup adds 2,500. By evening, ingredients run low and one more cup costs 5,000. From then on, every extra cup loses 500 won.