Skip to content
Built in Lahore, PakistanHow we check the math
mathbehind

How we check the math

MathBehind’s promise is that you can see and check every number. Where it comes from, when it was last reviewed, and the authority it was checked against.

Our review process

Every calculator goes through four stages before it reaches the live site, and the same four stages run again whenever a rate, threshold or price changes.

  1. Source lookup. The official source is read first (IRS, HMRC, FBR, UAE FTA, provider pricing page). Figures copied by secondary sites are not used unless they cite the primary document and the primary document is read to confirm.
  2. Formula codification. The rule is implemented in a single TypeScript function that is also the source of the step-by-step panel on the page. That one function is the only place the math lives.
  3. Known-answer verification. For tax and payroll tools, the result is checked by hand against the official rules at values above and below each threshold (e.g. the US Social Security wage base, UK dividend allowance, Pakistan filer slab edges). The hand-worked cases become automated tests that run on every release.
  4. Review calendar. Each country has a scheduled review date tied to when its tax year changes (see the table below). Prices, model rates and store fees are reviewed quarterly or on vendor announcement, whichever is sooner.

When an error is reported through Contact, it is confirmed within 24 hours and, if confirmed, fixed the same day and noted in News.

The working you see is the working we use

Each calculator has one function that turns your inputs into results. The step-by-step “math behind it” panel is produced from that same function’s inputs and outputs, so the explanation and the answer cannot disagree.

The worked examples in our guides are generated the same way: an article asks the calculator for its working instead of typing numbers in by hand. If a formula or rate changes, every article that uses it updates with it.

Testing

Before each release, an automated check runs every calculator with its default inputs and confirms each result is a valid number. The formulas that matter most, such as self-employment tax, are also checked against answers worked out by hand from the official rules, including cases above and below thresholds like the US Social Security wage base. When we find a mistake, we add a test for it so it can’t come back.

Our primary sources, by topic

Every tool that depends on an official figure or published price names its source on the page. These are the authorities we check against most often:

Keeping tax tools current

Tax rules change on each country’s own calendar. We review each country’s tools around these dates and update them from the official source, with a note in News when a change affects results.

CountryTax year startsWe review after
United States1 JanuaryIRS inflation adjustments each autumn
United Kingdom6 AprilAutumn Budget and Spring Statement
Pakistan1 JulyFederal budget in June
India1 AprilUnion Budget on 1 February
Australia1 JulyFederal budget in May
New Zealand1 AprilBudget in May
Canada1 JanuaryFederal and provincial budgets; GST/HST changes
UAE and Saudi ArabiaVariesMinistry of Finance, FTA and MHRSD announcements

Rounding

Calculations run at full precision and are rounded only when shown. Money is usually shown to the nearest whole unit or cent, depending on the tool, so a total can differ from the sum of its rounded parts by a cent or a unit.

What the tools don’t do

Results are estimates for planning. Each tool says what it includes and leaves out; for example, the freelance rate calculator covers self-employment tax but not income tax. They are not financial, tax or legal advice, and for decisions with real consequences you should confirm the figures with a qualified professional.

Your numbers stay with you

Calculations run in your browser. The values you type are saved only in your own browser so they are there when you come back, and they are not sent to us. See the Privacy Policy for details.

Found a mistake?

Tell us at contact@mathbehind.com or through the contact page. Every report is read by Muhammad Ahmad, who runs the site. Confirmed errors are fixed within 24 hours and, where they affected results, noted in News.