Phase 4 part 5: CLV and revenue by cohort

CLV = ARPA × revenue-weighted gross margin ÷ customer churn averaged over
up to 12 complete months, with lifetime and CLV:CAC (CAC over its own
12-month window). Revenue by cohort from money that came in: paid
invoices less refunds and post-payment credits not refunded, cumulative
per customer, with a gross profit view; months not reached are told
apart from negative amounts. Metrics → CLV and cohorts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 13:16:33 -07:00
co-authored by Claude Opus 5.5
parent a9a1cb97ac
commit 23f765159f
10 changed files with 447 additions and 1 deletions
+23
View File
@@ -1142,6 +1142,29 @@ into `main`.
weighted by each product's share of the revenue.
- Each signup cohort's actual cumulative revenue, net of refunds and
credit notes.
- **Built 2026-11-22** (no schema change):
- **`BuildCLV`** measures on the last complete month:
- ARPA;
- the margin, weighted by each product's 12-month billings;
- customer churn, as customers lost ÷ customers at the start,
summed over up to the last 12 complete months;
- lifetime = 1 ÷ churn;
- CLV = ARPA × margin × lifetime;
- CAC = spend ÷ new customers over its own 12-month window (churn
needs the month before, so its window starts a month later);
- CLV:CAC.
- **`RevenueByCohort`** uses money that actually came in: paid
invoices' `amount_paid` at `paid_at`, minus refunds that
succeeded, minus post-payment credit notes less any part refunded
(pre-payment notes already lowered the amount paid). It's counted
by the month it happened, cumulative per customer, for each first
paid month, with a gross profit view.
- Cells mark months not reached yet separately from the amount,
because revenue can be negative when refunds exceed payments.
- The page is Metrics → CLV and cohorts. On the live account, CLV
is about $1,161 of gross profit per customer: $94 a month, 60%
margin, 4.9% monthly churn, a 20.6-month lifetime. CAC waits for
spend to be logged.
6. **The dashboard.**
- MRR over time with its movements, NRR, CAC, CLV and CLV:CAC.
- CSV export of every table.