Skip to main content
Calculator Matters=
Calculator Matters=
[=]Calculators
Guides
HomeInvesting formula verification

Legal & Policies

Investing Formula Verification

29 of the 29 published investing calculators have an automated formula test suite. Each row gives one calculator's passing cases and the kinds of check behind them.

Last updated 16 September 2026

This is the investing 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 investing calculator, with its case mix

Automated formula-test coverage for the Investing calculators: passing cases and case mix per calculator
CalculatorCasesCase mix
Bitcoin Return Calculator3,84044 independent · 14 golden · 9 boundary · 3,750 property · 23 structural
Crypto Profit Calculator3,84044 independent · 14 golden · 9 boundary · 3,750 property · 23 structural
Portfolio Value Calculator3,84044 independent · 14 golden · 9 boundary · 3,750 property · 23 structural
Weighted Average Expense Ratio Calculator3,84044 independent · 14 golden · 9 boundary · 3,750 property · 23 structural
Dividend Reinvestment Calculator8524 golden · 23 boundary · 16 property · 22 structural
CAGR Calculator765 independent · 13 golden · 14 boundary · 18 property · 26 structural
Rule of 72 Calculator763 independent · 15 golden · 5 boundary · 26 property · 27 structural
Bond Yield Calculator7013 independent · 16 golden · 12 boundary · 17 property · 12 structural
Dividend Yield Calculator7013 independent · 16 golden · 12 boundary · 17 property · 12 structural
Annualized Return Calculator561 independent · 14 golden · 5 boundary · 6 property · 30 structural
Expected Return Calculator561 independent · 14 golden · 5 boundary · 6 property · 30 structural
Holding Period Return Calculator561 independent · 14 golden · 5 boundary · 6 property · 30 structural
Maximum Drawdown Calculator561 independent · 14 golden · 5 boundary · 6 property · 30 structural
XIRR Calculator561 independent · 14 golden · 5 boundary · 6 property · 30 structural
Cap Rate Calculator559 independent · 15 golden · 15 boundary · 4 property · 12 structural
NPV Calculator559 independent · 15 golden · 15 boundary · 4 property · 12 structural
Rental Property Calculator559 independent · 15 golden · 15 boundary · 4 property · 12 structural
Gross Rent Multiplier Calculator542 independent · 12 golden · 6 boundary · 4 property · 30 structural
Net Operating Income Calculator542 independent · 12 golden · 6 boundary · 4 property · 30 structural
Rental Yield Calculator542 independent · 12 golden · 6 boundary · 4 property · 30 structural
Vacancy Rate Calculator542 independent · 12 golden · 6 boundary · 4 property · 30 structural
Sharpe Ratio Calculator513 independent · 8 golden · 7 boundary · 3 property · 30 structural
Sortino Ratio Calculator513 independent · 8 golden · 7 boundary · 3 property · 30 structural
Retirement Withdrawal Calculator486 independent · 13 golden · 17 boundary · 8 property · 4 structural
Regular Investment Calculator404 independent · 14 golden · 13 boundary · 7 property · 2 structural
Portfolio Return Calculator399 golden · 6 boundary · 6 property · 18 structural
Investment Calculator3110 independent · 3 golden · 10 property · 8 structural
Real Estate Investment Calculator257 independent · 7 golden · 11 boundary
ROI Calculator148 golden · 1 boundary · 2 property · 3 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. The 8 largest suites in this category are shown; the other 7 are in the machine-readable report.

Crypto and portfolio engines (round-trip profit, invested return, DCA averaging, weighted expense ratio, portfolio value)

3,840 passing cases behind Crypto Profit Calculator, Bitcoin Return Calculator, Weighted Average Expense Ratio Calculator and Portfolio Value Calculator: 44 independent cross-check, 14 golden, 9 boundary, 3,750 property and 23 structural.

  • Independent cross-check — Crypto profit: 1 at 10000->15000 cost recomputed
  • Independent cross-check — Crypto profit: 1 at 10000->15000 proceeds recomputed
  • Independent cross-check — Crypto profit: 1 at 10000->15000 profit recomputed
  • Independent cross-check — Crypto profit: 2.5 at 300->250 cost recomputed
  • Independent cross-check — Crypto profit: 2.5 at 300->250 proceeds recomputed
  • Independent cross-check — Crypto profit: 2.5 at 300->250 profit recomputed

6 of 44 independent cross-check cases shown. The test file is scripts/validate-crypto-portfolio-defs-engine.cjs.

DRIP engine validation

85 passing cases behind Dividend Reinvestment Calculator: 24 golden, 23 boundary, 16 property and 22 structural.

  • Golden — t1 starting shares = 200
  • Golden — t1 final value matches legacy model (~61,666)
  • Golden — t1 final close to page example 61,666
  • Golden — t1 total dividends
  • Golden — t1 no-DRIP wealth
  • Golden — t2 target annual = 6000

6 of 24 golden cases shown. The test file is scripts/validate-drip-engine.cjs.

CAGR engine

76 passing cases behind CAGR Calculator: 5 independent cross-check, 13 golden, 14 boundary, 18 property and 26 structural.

  • Independent cross-check — Census: 308,745,538 (2010) to 331,449,281 (2020) is a 7.35% increase, reported as 7.4%
  • Independent cross-check — … which rounds to the Census Bureau’s published 7.4%
  • Independent cross-check — … the increase is 22,703,743 people
  • Independent cross-check — … a CAGR of 0.7121% a year over the ten years
  • Independent cross-check — OpenStax: revenue from $30M to $90M in 10 years grows 11.6123% a year (3^(1/10) − 1)
  • Golden — $2.4M to $3.9M over 4 years is 12.905% (fourth root of 1.625, minus 1)

5 of 5 independent cross-check cases shown; 1 of 13 golden cases shown. The test file is scripts/validate-cagr-engine.cjs.

Rule of 72 engine

76 passing cases behind Rule of 72 Calculator: 3 independent cross-check, 15 golden, 5 boundary, 26 property and 27 structural.

  • Independent cross-check — OpenStax: incomes growing 6% a year double in 72 ÷ 6 = 12 years by the rule
  • Independent cross-check — … and in 11.896 years exactly
  • Independent cross-check — 100 × ln 2 is the 69.3 of the continuous rule
  • Golden — 72 ÷ 8 = 9 years
  • Golden — exact doubling at 8% is ln 2 ÷ ln 1.08 = 9.0065 years
  • Golden — continuous doubling at 8% is 69.31 ÷ 8 = 8.6643 years

3 of 3 independent cross-check cases shown; 3 of 15 golden cases shown. The test file is scripts/validate-rule-of-72-engine.cjs.

Yield engines (APY, bond yield, dividend yield)

70 passing cases behind Bond Yield Calculator and Dividend Yield Calculator: 13 independent cross-check, 16 golden, 12 boundary, 17 property and 12 structural.

  • Independent cross-check — APY: n=1 (annual) returns the APR exactly
  • Independent cross-check — APY: n=4 (quarterly) → 5.094534%
  • Independent cross-check — APY: n=365 (daily) → 5.126750%
  • Independent cross-check — APY: 12% APR monthly → 12.682503%
  • Independent cross-check — APY→APR: 5.116190% APY compounded monthly is a 5% APR
  • Independent cross-check — APY→APR: … and 10,000 still earns 511.62 in the year

6 of 13 independent cross-check cases shown. The test file is scripts/validate-yield-defs-engine.cjs.

Return measure engines (HPR, annualised, XIRR, drawdown, expected)

56 passing cases behind Holding Period Return Calculator, Annualized Return Calculator, XIRR Calculator, Maximum Drawdown Calculator and Expected Return Calculator: 1 independent cross-check, 14 golden, 5 boundary, 6 property and 30 structural.

  • Independent cross-check — XIRR: the solved rate discounts every flow back to zero
  • Golden — HPR: (120 − 100 + 5) / 100 = 25%
  • Golden — HPR: the capital gain alone is 20%
  • Golden — HPR: the income yield is 5%
  • Golden — Annualised: 1.6 to the power of one-fifth, less one, is 9.86%
  • Golden — Annualised: total return is 60%

1 of 1 independent cross-check cases shown; 5 of 14 golden cases shown. The test file is scripts/validate-return-measure-defs-engine.cjs.

Property & project return engines (cap rate, rental, NPV)

55 passing cases behind Cap Rate Calculator, Rental Property Calculator and NPV Calculator: 9 independent cross-check, 15 golden, 15 boundary, 4 property and 12 structural.

  • Independent cross-check — Cap rate: NOI 37,000 at a 6% cap implies 616,667
  • Independent cross-check — Cap rate: the same NOI at an 8% cap implies 462,500
  • Independent cross-check — Cap rate: re-pricing at the 6% implied value returns a 6% cap
  • Independent cross-check — Cap rate: re-pricing at the 8% implied value returns an 8% cap
  • Independent cross-check — Cap rate: a higher benchmark cap implies a lower value
  • Independent cross-check — Rental: cap rate is unchanged by any financing choice

6 of 9 independent cross-check cases shown. The test file is scripts/validate-property-return-defs-engine.cjs.

Rental metric engines (NOI, GRM, vacancy, cash-on-cash, yield)

54 passing cases behind Net Operating Income Calculator, Gross Rent Multiplier Calculator, Vacancy Rate Calculator and Rental Yield Calculator: 2 independent cross-check, 12 golden, 6 boundary, 4 property and 30 structural.

  • Independent cross-check — Cash-on-cash divides by cash invested, including closing costs and rehab
  • Independent cross-check — It is demonstrably not the purchase price in the denominator
  • Golden — NOI: 31,200 less 5% vacancy is 29,640 of effective gross income
  • Golden — NOI: expenses total 9,800
  • Golden — NOI: 29,640 less 9,800 is 19,840
  • Golden — NOI: against 350,000 that is a 5.67% cap rate

2 of 2 independent cross-check cases shown; 4 of 12 golden cases shown. The test file is scripts/validate-rental-metrics-defs-engine.cjs.

A documents folder, reading glasses and papers on a desk
Photo: Leeloo The First / Pexels
Questions about this policy?Published by Calculator Matters (calculatormatters.com). Last reviewed 16 September 2026. Built and maintained by Jay Sudha (about Calculator Matters). These pages are reviewed regularly, and questions are always welcome.
Contact us
Calculator Matters=

Formula-backed calculators with clear assumptions, practical interpretation, and workbook support.

Calculators are educational estimates, not professional advice.

  • Instagram
  • Pinterest
  • Facebook
  • X

Popular calculators

  • Mortgage Calculator
  • Compound Interest Calculator
  • Investment Calculator
  • Regular Investment Calculator
  • Retirement Withdrawal Calculator
  • Standard Deviation Calculator

Browse by category

  • Finance
  • Investing
  • Budget & Credit
  • Business
  • Tax
  • Economics
  • Math
  • Health
  • Time & Date
  • Home & Energy
  • Everyday
  • Conversion

Explore

  • All Calculators
  • Calculator Guides
  • Glossary
  • Embed a calculator
  • Verified Formula badge
  • API for developers
  • Changelog
  • Sitemap

Company

  • About
  • Methodology
  • Formula Verification
  • Transparency
  • Editorial Policy
  • Corrections
  • Accessibility
  • Contact

Legal & privacy

  • Privacy Policy
  • Privacy Rights
  • Cookie Policy
  • Terms of Use
  • Disclaimer
  • Advertising Disclosure
  • Affiliate Disclosure
  • Copyright & DMCA Policy

© 2026 Calculator Matters · calculatormatters.com.

Educational estimate — not financial, tax, legal, or professional advice. Formulas and assumptions are shown on the page above.