KatInterview

Daily-Deal Voucher: Restaurant Profit & Break-Even Analysis

Arrays & HashingAuto-graded · 13 test cases
EasyAuto-gradedArrays & Hashingunit economicscontribution marginbreak-even analysis

Last updated

Tests whether you can build a contribution-margin model for a voucher partnership, solve break-even and sensitivity equations, and decompose a profit change into its drivers.

Daily-Deal Voucher: Restaurant Profit & Break-Even Analysis

You own a small restaurant. Your baseline operating setup looks like this:

  • Tables served per day: 20 (one party per table)
  • Average pre-discount spend per table: $30
  • Variable cost (VC): 40% of pre-discount spend
  • Fixed cost (FC): $100/day
  • Ignore tips and taxes

A third-party deal platform offers to feature your restaurant with the following promotion: a customer purchases a voucher worth $30 of food for $15. The platform keeps a 40% commission on the $15 the customer pays. Only one voucher may be used per table. Let n denote the total pre-discount spend at a table where a voucher is redeemed.

The cost model for a voucher table is:

Revenue: n
Costs:   0.4n  +  $15 (the face value the customer redeems)  +  0.4 × $15 (the platform's commission)

Work through the six parts below. Show your formulas and report a single final number for each.

Part 1 — Baseline daily profit

What is your restaurant's daily profit before joining the deal platform?

Part 2 — Break-even spend on a voucher table

Using the cost model above, solve for the pre-discount spend n at which a single voucher table contributes exactly zero profit (contribution break-even, not full-cost break-even).

Part 3 — All tables on vouchers

Suppose all 20 tables redeem a voucher and the table count stays at 20 per day. What average pre-discount spend per table is required to keep daily profit equal to the baseline from Part 1?

Part 4 — Mixed observation day

After joining the platform you record the following:

  • 25 tables served that day
  • 10 of those tables used a voucher
  • Average pre-discount spend across all 25 tables: $36
  • VC and FC are unchanged

What is the daily profit for this mixed day?

Part 5 — Profit change decomposition

Decompose the change in daily profit relative to baseline into three labeled components:

  1. Change in table count
  2. Change in average spend per table
  3. Voucher cost on the coupon tables (face value + commission)

Report each component's dollar value, the net profit change, its direction, and identify the primary driver.

Part 6 — Sensitivity: minimum coupon-table spend

Holding the 15 regular tables at $36 average spend and all counts unchanged from Part 4, find the minimum average pre-discount spend per coupon table that would restore daily profit to the baseline level from Part 1.


Constraints

  • All monetary values are in USD; return exact values (integers or floats).
  • Variable cost is always 40% of pre-discount spend, regardless of voucher use.
  • The platform's commission is always 40% of the $15 the customer pays (not the $30 face value).
  • Fixed cost does not change across any scenario.
  • The decomposition uses the sequential order: volume effect at the old spend first, then the spend effect at the new volume.
  • primary_driver is the string "voucher cost".
  • Return a single dict matching the structure shown in the examples.

Examples

Example 1

Input: daily_deal_voucher_economics()

Output: {'baseline_profit': 260, 'voucher_break_even_spend': 35, 'all_voucher_spend_for_baseline': 65, 'mixed_profit': 230, 'profit_change_vs_baseline': -30, 'decomposition': {'table_count_change': 90, 'average_spend_change': 90, 'voucher_cost': -210, 'primary_driver': 'voucher cost'}, 'minimum_coupon_table_spend_for_baseline': 41}

Hints

Hint 1

The voucher removes $30 from what the customer pays at the table but your kitchen still consumed $n of food, so variable cost is always 0.4 × n regardless of the voucher.

Hint 2

Each voucher table costs you exactly $21 beyond normal variable costs: $15 face value not collected plus $6 commission (40% of $15). Subtract this flat $21 from the 60% contribution margin to get the voucher-table contribution formula: 0.6n − 21.

Hint 3

For the decomposition, compute the volume effect first (extra tables × old spend × margin rate), then the spend effect (new table count × spend increase × margin rate), and finally subtract total voucher cost. Verify that these three components sum to the observed profit change.