# Stripe MRR Reconciliation Rules

Two SaaS dashboards rarely show the exact same MRR because Stripe documents API fields, not accounting choices. Pick one explicit rule per edge case, write it down here, and keep your code aligned to it.

## 1. Subscription status inclusion
- Include: `active` and `past_due` (only inside your grace window, typically 7–14 days of active dunning).
- Exclude: `trialing`, `incomplete`, `incomplete_expired`, `canceled`, `unpaid`, and `paused`.

## 2. Billing interval normalization
- Monthly: `unit_amount * quantity / interval_count`
- Yearly: `(unit_amount * quantity) / (12 * interval_count)`
- Weekly: `(unit_amount * quantity * 52) / (12 * interval_count)`
- Daily: `(unit_amount * quantity * 365) / (12 * interval_count)`

## 3. Discounts and coupons
- Recurring `forever` or `repeating` discounts: subtract from active MRR while the discount applies.
- One-time `once` coupon on an annual invoice: amortize across 12 months (or explicitly exclude and document the choice).

## 4. Prorations and one-off invoice items
- Never count proration line items as recurring MRR. They reflect mid-cycle adjustments, not steady-state monthly commitment.
- Never count one-time setup fees or usage overages in base MRR; track metered usage separately as variable recurring revenue.

## 5. Taxes and multi-currency FX
- Always strip VAT/GST/sales tax (use `subtotal_excluding_tax` or pre-tax price amounts). Tax is pass-through liability, not revenue.
- Normalize non-USD subscriptions to your reporting currency using a fixed monthly FX snapshot so exchange-rate drift does not look like expansion or contraction.

## 6. Voluntary vs. involuntary churn
- Log `cancellation_details.reason` on every canceled subscription so involuntary failed-card churn is tracked separately from voluntary product churn.
