This is the budget & credit section of the formula verification report, which explains what each kind of case tests, how the counts are produced and what they do not prove; how to read the report walks through a single row. Rows run from the largest suite to the smallest; each row's address ends in the calculator's slug, so one calculator's evidence can be linked and cited on its own. The test file behind every row, and the per-kind numbers, are in the machine-readable report.
Every budget & credit calculator, with its case mix
| Calculator | Cases | Case mix |
|---|---|---|
| 50/30/20 Budget Calculator | 122 | 52 golden · 59 boundary · 1 property · 10 structural |
| Budget Calculator | 114 | 32 golden · 58 boundary · 7 property · 17 structural |
| Net Worth Calculator | 109 | 55 golden · 39 boundary · 4 property · 11 structural |
| Credit Card Payoff Calculator | 83 | 19 golden · 24 boundary · 22 property · 18 structural |
| Debt Payoff Calculator | 73 | 10 golden · 20 boundary · 31 property · 12 structural |
| Balance Transfer Calculator | 65 | 2 independent · 17 golden · 19 boundary · 11 property · 16 structural |
| Credit Utilization Calculator | 65 | 2 independent · 17 golden · 19 boundary · 11 property · 16 structural |
| Emergency Fund Calculator | 65 | 2 independent · 17 golden · 19 boundary · 11 property · 16 structural |
| Debt Payoff vs Investing Calculator | 22 | 1 independent · 7 golden · 6 boundary · 6 property · 2 structural |
What each suite checks
Counts say how much was checked; these say what. Each case below is quoted from its test file exactly as the runner recorded it, in the order the cases run, independent cross-checks first. Where a suite has more cases than fit, the count in brackets says how many of that kind exist in total.
50/30/20 engine
122 passing cases behind 50/30/20 Budget Calculator: 52 golden, 59 boundary, 1 property and 10 structural.
- Golden — weekly
- Golden — biweekly
- Golden — semimonthly
- Golden — monthly
- Golden — annual
- Golden — quick base monthly
- Golden — quick base annual
- Golden — quick needs target
- Golden — quick wants target
- Golden — quick savings target
- Golden — quick needs annual
- Golden — quick needs weekly
- Golden — addback monthly
- Golden — base with addback
- Golden — needs target with addback
- Golden — addback off keeps base
- Golden — cmp base
- Golden — cmp needs actual
- Golden — cmp wants actual
- Golden — cmp savings actual
- Golden — cmp allocated
- Golden — cmp unassigned
- Golden — cmp needs pct
- Golden — cmp wants pct
24 of 52 golden cases shown. The test file is scripts/validate-ftt-engine.cjs.
Budget engine
114 passing cases behind Budget Calculator: 32 golden, 58 boundary, 7 property and 17 structural.
- Golden — freq monthly
- Golden — freq yearly
- Golden — freq weekly
- Golden — freq biweekly
- Golden — freq oneTime
- Golden — default income
- Golden — default expenses
- Golden — default surplus
- Golden — default annual surplus
- Golden — default expense ratio
- Golden — default housing ratio (housing+utilities)
- Golden — default debt ratio
- Golden — default planned savings
- Golden — default potential savings
- Golden — default food ratio
- Golden — default fixed ratio
- Golden — default flexible
- Golden — default score
- Golden — default score label
- Golden — adv income
- Golden — adv expenses
- Golden — adv food monthly
- Golden — adv savings monthly
- Golden — adv debt monthly
24 of 32 golden cases shown. The test file is scripts/validate-budget-engine.cjs.
net worth engine
109 passing cases behind Net Worth Calculator: 55 golden, 39 boundary, 4 property and 11 structural.
- Golden — default assets
- Golden — default liabilities
- Golden — default net worth
- Golden — default dta pct
- Golden — default a2l
- Golden — default equity pct
- Golden — default liquid
- Golden — default liquidity pct
- Golden — default liquid NW
- Golden — default home equity
- Golden — default vehicle equity
- Golden — default secured
- Golden — default unsecured
- Golden — default high interest
- Golden — default tangible = nw
- Golden — default largest group
- Golden — default RE pct
- Golden — ex1 net worth
- Golden — ex1 dta
- Golden — ex2 home equity
- Golden — ex2 net worth
- Golden — ex2 RE equity
- Golden — ex4 assets
- Golden — ex4 net worth
24 of 55 golden cases shown. The test file is scripts/validate-net-worth-engine.cjs.
credit card payoff engine
83 passing cases behind Credit Card Payoff Calculator: 19 golden, 24 boundary, 22 property and 18 structural.
- Golden — single months ~33
- Golden — min greaterOf floor
- Golden — min greaterOf pct
- Golden — min fixed
- Golden — min pctBalance
- Golden — min pctPlusInterest
- Golden — transfer fee
- Golden — transfer start balance
- Golden — transfer months
- Golden — transfer interest
- Golden — paid before promo ends
- Golden — total utilization
- Golden — store card util
- Golden — highest util card is store
- Golden — blended APR
- Golden — biweekly extra converted
- Golden — reverse extra ≈ 50
- Golden — sample starting balance
- Golden — promo minSum is promo-rate (1% of 5000, 0% interest)
- Boundary — min capped
- Boundary — shortfall flagged
- Boundary — shortfall warning
- Boundary — never finishes
- Boundary — never label
19 of 19 golden cases shown; 5 of 24 boundary cases shown. The test file is scripts/validate-cc-payoff-engine.cjs.
Debt payoff engine
73 passing cases behind Debt Payoff Calculator: 10 golden, 20 boundary, 31 property and 12 structural.
- Golden — 3mo months
- Golden — 3mo interest
- Golden — 3mo paid
- Golden — 3mo m1 interest
- Golden — 3mo m1 end
- Golden — 3mo m2 end
- Golden — 3mo m3 payment
- Golden — 3mo m3 end
- Golden — sample starting debt
- Golden — sample min sum
- Boundary — zero-apr months
- Boundary — zero-apr interest
- Boundary — zero-apr paid
- Boundary — zero-apr final end balance
- Boundary — never warns in validation
- Boundary — baseline never finishes
- Boundary — baseline capped at 600
- Boundary — debt-free label says Never
- Boundary — savings null when baseline never finishes
- Boundary — diagnosis mentions minimums floor
- Boundary — promo: zero interest through month 6
- Boundary — promo: interest resumes month 7
- Boundary — budget shortfall flagged
- Boundary — reverse extra ≈ 50
10 of 10 golden cases shown; 14 of 20 boundary cases shown. The test file is scripts/validate-debt-payoff-engine.cjs.
Household credit engines (utilisation, transfer, DTI, emergency fund)
65 passing cases behind Credit Utilization Calculator, Balance Transfer Calculator and Emergency Fund Calculator: 2 independent cross-check, 17 golden, 19 boundary, 11 property and 16 structural.
- Independent cross-check — Transfer: break-even is independent of the balance size
- Independent cross-check — Transfer: break-even for 4% fee at 18% APR = 2.667 months
- Golden — Utilisation: 2,500 / 10,000 = 25%
- Golden — Utilisation: available credit = limit − balance
- Golden — Utilisation: 30% threshold balance = 3,000
- Golden — Utilisation: 10% threshold balance = 1,000
- Golden — Transfer: fee = 3% of 5,000
- Golden — Transfer: interest avoided over 18 months = 1,724.25
- Golden — Transfer: net saving = avoided interest − fee
- Golden — Transfer: break-even = fee ÷ one month of interest
- Golden — DTI: total monthly debt = 1,500 + 400 + 300 + 200
- Golden — DTI: front-end = housing ÷ gross income = 25%
- Golden — DTI: back-end = all debt ÷ gross income = 40%
- Golden — DTI: income left after debt = 3,600
- Golden — Fund: target = 4,000 x 6 months
- Golden — Fund: shortfall = 24,000 − 5,000
- Golden — Fund: 19,000 at 300/month = 64 months (rounded up)
- Golden — Fund: current savings cover 1.25 months of expenses
- Golden — Fund: 20.833% funded
- Boundary — Utilisation: over-limit reports 120%, not a clamped 100%
- Boundary — Utilisation: over-limit available credit goes negative
- Boundary — Utilisation: a zero limit returns 0%, not Infinity
- Boundary — Utilisation: nothing owed on a live limit is 0%
- Boundary — Transfer: 0% current APR avoids no interest
2 of 2 independent cross-check cases shown; 17 of 17 golden cases shown; 5 of 19 boundary cases shown. The test file is scripts/validate-credit-health-defs-engine.cjs.
Debt-vs-investing engine
22 passing cases behind Debt Payoff vs Investing Calculator: 1 independent cross-check, 7 golden, 6 boundary, 6 property and 2 structural.
- Independent cross-check — endingDebtBalance ≈ closed-form remaining balance
- Golden — payDebtFirst payoffMonth
- Golden — payDebtFirst endingDebtBalance
- Golden — payDebtFirst endingPortfolio (8mo * 150, 0% return)
- Golden — payDebtFirst netWorth
- Golden — investExtra endingDebtBalance
- Golden — investExtra endingPortfolio (24mo * 50, 0% return)
- Golden — investExtra netWorth
- Boundary — investExtra payoffMonth (clears exactly on the last month)
- Boundary — never-amortizes warning
- Boundary — high-APR-vs-investing warning
- Boundary — no high-APR warning at a modest rate
- Boundary — debtBalance<=0 invalid
- Boundary — minPayment<=0 invalid
- Property — netWorthDifference is an exact tie
- Property — winner
- Property — both paths identical when extraMonthly=0
- Property — netWorthDifference is 0 when the paths are identical
- Property — higher debt APR shifts net worth toward paying debt first
- Property — higher investment return shifts net worth toward investing
- Structural — no errors
- Structural — debt not cleared within horizon
1 of 1 independent cross-check cases shown; 7 of 7 golden cases shown; 6 of 6 boundary cases shown; 6 of 6 property cases shown; 2 of 2 structural cases shown. The test file is scripts/validate-debt-vs-investing-engine.cjs.
