Calculation logic
Formula logic is isolated in TypeScript modules so the same math can power multiple interfaces and be reviewed independently from the page layout.
We validate every formula against peer-reviewed sources, cross-check results against reference implementations, and document the math so you can verify it yourself.
Last updated: March 2026
Formula logic is isolated in TypeScript modules so the same math can power multiple interfaces and be reviewed independently from the page layout.
Results are rounded for readability, but the calculator preserves precision during internal calculations wherever it materially affects totals.
Every calculator includes an assumptions section that explains what the tool does and does not model.
The launch version computes results locally in the browser. If future features introduce saved scenarios or analytics events, those changes should be documented on-page.
Every formula is traced back to its origin — academic papers, government publications, or recognized industry standards. No secondary sources or guesswork.
Each calculator is tested against reference data sets, known worked examples, and at least one independent implementation. Edge cases are tested explicitly.
Every calculator page shows the formula, explains variables, and links to source material. Assumptions like rounding rules are stated explicitly.
Tax rates change. Guidelines update. We run automated checks and update calculators when underlying data changes. Each calculator shows when it was last verified.
Every formula is sourced from peer-reviewed papers, government publications, or recognized industry standards. Secondary summaries are not accepted as primary sources.
Calculation logic is written in a standalone TypeScript module, separate from UI and content, so it can be tested and reviewed independently.
Each calculator is tested against textbook worked examples, reference data sets, and at least one independent implementation such as Wolfram Alpha or Excel.
The formula, variable definitions, rounding behavior, assumptions, worked examples, and source citations are documented on the calculator page.
Automated test suites verify correctness on every build. When underlying data changes, such as tax rate updates, the affected calculators are updated and re-verified.
If you find an error, disagree with a source, or want to suggest a better formula — we want to hear from you.
Report an issue or suggest an improvement