# MasteryClub.ai financial simulation model

This is a decision model, not a live billing system or a final compensation policy. Working source assumptions are $97/month, $997/year, three monthly learning credits, a proposed 10% monthly-equivalent fee payment per qualifying token, 20% standard recurring affiliates and a 40% combined budget benchmark. Costs, utilization, acquisition targets, annual-plan shares, refunds, rollover, completion and payout timing are illustrative settings. The planner covers 1–12 months.

## Revenue and cash

- Each monthly target means new signups acquired in that month, not total active membership. Set `acquisitionPlan` rows with `newMembers` and `annualSharePct`; the remaining share chooses monthly billing. All cohorts start within the plan. Existing-base/anniversary imports are not modeled in the editable UI.
- Monthly churn applies only to retained monthly subscribers before that month’s new members join and the current month is billed. Fractional member counts represent forecast averages. With no churn/refunds, 100 new in Month 1 and 300 new in Month 2 produce 100 then 400 active members.
- The base illustration starts with 100 new signups in Month 1, 300 in Month 2, and 300 per month thereafter, with 20% choosing annual billing. These are editable examples rather than agreed targets. Optional end-of-plan goals compare active membership and monthly-equivalent earned revenue with their targets.
- Legacy saved scenarios are migrated: Month 1 becomes the old starting monthly + annual counts; later targets become the old fixed new-monthly + new-annual counts. No starting count is added twice.
- Annual cohorts retain paid access and earned revenue for twelve months. The renewal percentage applies on their own anniversary; monthly churn does not cancel annual recognition. There is no midterm annual cancellation or partial-refund model.
- Annual cash is collected on sale/renewal and revenue is earned at annual price divided by twelve. The model reports the remaining deferred annual revenue.
- The refund percentage represents immediate full refunds of a proportion of billing transactions. These refunded subscriptions are canceled before token grants and current-period revenue recognition. Annual refunds occur on sale/renewal only. Processing fees are assumed nonrefundable and apply to gross transactions.
- Affiliate commissions are accrued and paid monthly against earned net membership revenue, including annual subscriptions. Operating costs are paid in the period recognized; no payment lags are modeled.
- Danny’s launch assumption is `trainerStartMonth = 2`: no training compensation is accrued or paid in Month 1, and there is no later catch-up for Month 1 qualifying uses. Ordinary affiliate commissions remain payable. Both per-token and shared-pool trainer totals, individual training earnings, contribution and cash flow use this rule. Change the start month to compare another policy. This is a launch waiver assumption, not deferred payment of an accrued trainer liability. A pending, uncompleted course that first qualifies after the start month can still generate compensation under the selected completion policy.
- Sales taxes, corporate tax, financing, owner compensation, VIP revenue, standalone course sales and refunds of earlier periods are excluded. Add those costs explicitly before treating contribution as profit.

## Payout choices

**Per-token:** qualifying tokens retain their grant's monthly subscription revenue basis. Expense equals the sum of those bases multiplied by the token percentage. At 10%, a $97 monthly membership generates $9.70 per qualifying token; a $997 annual membership generates $8.308333… . There is no automatic clipping at the combined budget.

**Shared pool:** the combined budget equals current earned net revenue multiplied by the selected budget percentage. Affiliate expense is deducted once. The remainder is allocated to trainers according to qualifying token counts, with equal value per token. No qualifying tokens means zero trainer expense and an unallocated budget. Affiliates can exceed the benchmark; that overrun remains visible.

Trainer allocation weights are relative and normalized across trainers. They apply to both monthly and annual usage, including any completions from prior periods. The affiliate-share field on each trainer is the percentage of affiliate-attributed revenue they referred; the remainder belongs to other affiliates. A trainer's optional affiliate commission override replaces the standard rate for their portion. The interface must reject total affiliate allocations above 100% and all-zero trainer weights before presenting a reviewable scenario.

An unallocated budget is not an expense. Operating contribution deducts actual payouts, processing fees, variable costs and fixed costs. Break-even is an approximate same-period, constant-mix calculation using contribution per active member before fixed costs; it is unavailable if that unit contribution is not positive. Annual sale-period processing fees can affect this approximation.

## Token ledger and access assumptions

Tokens are course-unlock credits, not a currency or a cash entitlement. Both billing plans grant credits monthly. Bonuses follow the same payout rule as ordinary grants. Current member count reflects refunds before grants.

The ledger is `closing = opening + grants + bonuses − redeemed − expired − revoked`. Utilization applies proportionally to the available lots. Each lot stores its original revenue basis; changing an opening lot's basis is an explicit input, not a consequence of changing the current price.

Opening balances are assumed valid at the start of Month 1 with age zero for the selected expiry window. A rollover setting of zero expires unused tokens at month-end; one allows that month's tokens to be used through the following month; two through the second following month. Expiry occurs after that month's utilization.

Under the completion trigger, the completion percentage applies each month to all eligible pending redemptions, including current-period redemptions. Completed uses are removed once and generate one payment. Uncompleted redemptions remain pending. Under the redemption trigger, every redemption qualifies immediately.

Monthly cancellation and full refunds revoke the proportionate unused balance and pending completions associated with those members. Opening balances are also proportionately revoked for Month 1 refunds. At the end of an annual term, unused credits and pending completions are revoked before renewal, even for renewing members. These are explicit modeling assumptions, not agreed member-access policies; refine them before implementation in the real product.

## API and validation

`finance-engine.js` provides the same `MasteryFinance` object in the browser and via CommonJS: `defaults`, `presets`, `normalize(input)`, `calculate(input)`, `project(input, months = 12)`.

The engine protects calculations by bounding invalid numbers and returns validation errors. The UI must block reliance on results and exports while those errors exist; bounded output is not approval of invalid inputs. Names and labels must be escaped by the UI before HTML interpolation.

`calculate()` returns Month 1 plus both compensation models. `project()` follows subscription cohorts and token lots for up to 12 months for an explicit acquisition plan, with fixed prices and rules. Raw legacy inputs retain the previous internal 120-month support for compatibility; the public planner always limits selection to one year. The returned rows include `acquisition`, `cumulative`, monthly/annual earned revenue and net cash, with matching period totals. All money and expected counts retain full precision until display/export formatting.

Run `node finance-engine.test.cjs` from the Site checkout root for deterministic numerical checks and ledger reconciliation across scenarios. The UI can inspect any month’s business, trainer and token figures; CSV/JSON exports preserve all monthly targets and period results.
