சுருக்கம்
This wiki documents the methodology behind every calculator on everycalc. Each article explains what formula is used, where it comes from, what assumptions are made, and how we verify accuracy against official sources.
Why this exists
Every calculator on everycalc is built using authoritative sources — gov.uk for UK tax, HMRC for National Insurance thresholds, WHO for health metrics, and peer-reviewed research for fitness formulas. But without documentation, users have no way to verify our calculations or understand our assumptions.
This wiki solves three problems:
- Trust — users can see exactly how results are calculated and check our sources
- Accuracy — documenting methodology forces us to verify every constant and formula
- Maintenance — when tax rates change each April, we know exactly which articles and constants to update
Article structure
Every wiki entry follows the same template:
- Summary — what the calculator does, in 50 words
- How it works — the methodology in plain English
- The formula — the mathematical formula with a variable legend
- Worked example — step-by-step calculation with real numbers
- Inputs explained — what each input means, where to find the real value
- Outputs explained — what each result means in context
- Assumptions & limitations — what the calculator does NOT cover
- Verification — test cases checked against official tools, with dates
Source types
Every article must cite at least one authoritative source. Sources are classified by type:
| Type | Badge colour | Examples |
|---|---|---|
| Government | Teal | gov.uk, HMRC, ONS |
| Academic | Blue | Peer-reviewed journal papers |
| Industry | Amber | Professional body guidelines, financial standards |
| Legislation | Purple | Acts of Parliament, statutory instruments |
| Clinical | Green | NHS, WHO, NICE guidelines |
Verification standards
- Financial calculators must be verified against the official government calculator (e.g., gov.uk SDLT calculator, HMRC tax calculator)
- Health calculators must cite the original research paper or clinical guideline defining the formula
- All calculators must include an accounting identity test in their unit test suite (e.g.,
gross = net + tax + NI + pension) - Verification dates are tracked — articles older than 6 months show an amber warning badge
Quality gate
A build-time script checks that every calculator in nav.ts has a corresponding wiki entry. Missing entries generate warnings (eventually, build failures).
How to contribute a new article
- Create a new
.mdxfile insrc/content/wiki/ - Add the required frontmatter (title, description, sources, etc.)
- Follow the article template structure above
- Add the calculator path → wiki slug mapping in
src/data/wikiSlugs.ts - Run
npm run buildto validate the frontmatter schema - The article will automatically appear on the wiki hub page