Methodology — how our calculators actually work

A calculator is only as trustworthy as its stated method. This page documents the formulas, data sources, rounding behaviour and privacy model for the calculators documented on this page, so a result can be checked independently and cited with a stable source.

Date Adder — calendar arithmetic

Adding days, months or years uses whole-calendar UTC date arithmetic, not a fixed 365.25-day division. Month additions clamp to the last valid day of the target month (31 January + 1 month = 28/29 February), and leap years follow the Gregorian rule. No time zone or daylight-saving adjustment is applied, because the tool only accepts calendar dates.

Inflation Calculator — real purchasing power

The compounding model is FV = PV × (1 + i)^n, where i is the annual inflation rate and n the number of years; the inverse form PV = FV / (1 + i)^n reports what a future amount is worth today. The rate is supplied by the visitor. The tool does not embed any official CPI/IPC series and does not claim a country-specific index — a stated limitation, since inflation is always tied to a named national index and period.

Age Calculator — calendar years, months and days

Full calendar years are counted first, then remaining whole months, then remaining days, borrowing from the previous month where needed. This handles leap years and variable month lengths without averaging. Hours lived is days lived × 24: the tool deliberately does not ask for a birth time, so it never implies hour-level precision. The Chinese zodiac uses the lunar New Year boundary with a 1940–2030 date table, so January and early-February birthdays are assigned to the correct zodiac year.

Fraction Calculator — exact integer arithmetic

Addition, subtraction, multiplication and division are performed on integer numerators and denominators; results are reduced by the Euclidean greatest common divisor and normalised so the denominator is always positive. Floating point is not used for the fraction itself, so 1/3 remains exactly 1/3 rather than 0.3333.

Percentage Calculator — three modes

The tool answers X% of Y = Y × X/100, X is what percent of Y = 100 × X/Y, and percentage change = 100 × (new − old)/old. A zero denominator returns an explicit undefined result instead of a number. Division uses full floating-point precision internally; only the displayed value is rounded.

More tools — methods by category

Every tool below keeps the same browser-only, no-upload guarantee described inData sources and privacy, and states its formula or model so a result can be reproduced from the inputs alone.

Compound Interest

Future value A = P·(1 + r/n)n·t, where P is principal, r the nominal annual rate, n the compounding frequency and t the years. The inverse solves for the present value. Recurring-contribution variants (DCA / SIP) add a level-annuity term on top of the lump sum.

Mortgage / Loan EMI

Equal monthly instalments use M = P·r·(1+r)n / ((1+r)n − 1), with r the periodic rate and n the number of payments. Prepayment and extra-payment variants recompute the schedule from the reduced principal.

Currency Converter

Amounts are converted with live ECB reference rates fetched in the browser and cached for the session; an offline fallback rate is shown with its date so stale figures are never silent. No account or API key is exposed to the page.

Discount / Markup

Final price = list × (1 − discount%); the reverse solves the original price from a sale price, and markup% is computed against cost. Percentages are applied with full precision and only the displayed value is rounded.

ROI

Return on investment = (gain − cost) / cost × 100%. Multi-period versions annualise with (1 + r)n − 1 so periods are comparable.

BMI

Body mass index = weight(kg) / height(m)2, classified by the WHO bands (underweight / normal / overweight / obese). It is a population screen, not a body-fat measure — see the dedicated body-fat and ideal-weight tools.

Calorie / BMR

Basal metabolic rate uses the Mifflin–St Jeor equation, scaled by an activity-factor multiplier to estimate total daily energy expenditure. Height, weight, age and sex are the only inputs; no biometric upload occurs.

One-Rep Max

Estimated 1RM from a submaximal set uses the Epley formula w·(1 + r/30), where w is the weight lifted and r the repetitions. It is a prediction, not a measured maximum.

LCM / HCF

Greatest common divisor by the Euclidean algorithm; least common multiple = |a·b| / GCD. Exact integer arithmetic, never floating point, so results are always exact.

Prime Factorization

Trial division up to √n extracts the prime factors and their exponents; results are exact integers, not approximations.

Roman Numerals

Standard additive/subtractive mapping (I=1 … M=1000) with the usual subtractive pairs (IV, IX, XL, XC, CD, CM). Values are validated to the supported range before conversion.

Radix / Base Converter

Integers and fractions are converted between bases 2–36 using exact integer arithmetic on the whole-number part and a bounded-precision expansion on the fractional part.

Date Difference

Whole-calendar difference between two dates: years, then months, then days, with leap-year and variable-month handling identical to the Age Calculator. A total-days figure is also given for period math.

JSON Formatter / Diff

Re-parses and re-indents JSON entirely in the browser; the diff variant compares two documents by key path. No document is sent anywhere.

Base64

Text is UTF-8 encoded first, then base64-encoded (and the reverse on decode) using the standard alphabet. Binary-to-base64 paths read files locally and never upload them.

Hash Generator

Standard cryptographic digests (MD5, SHA-1, SHA-256, SHA-512) computed locally over the input; HMAC modes take a key. No value leaves the browser.

QR Code

Encodes text/URL with the standard ISO/IEC 18004 model (Reed–Solomon error correction at the selected level) and renders to a canvas locally.

Color Converter

Converts between HEX, RGB and HSL in the sRGB space with exact channel math; no external colour service is contacted.

Rounding, precision and error handling

Internal computation keeps full precision. Displayed decimal results are rounded to two places (half away from zero) unless a tool exposes its own precision control; exact fraction and integer results are never rounded. Out-of-range or non-numeric input produces a visible validation message rather than NaN or 0.

Data sources and privacy

All inputs stay in the browser. There is no upload, no server-side computation, no account and no result storage; the only persisted values are the theme preference and the cookie-consent flag. The one tool that fetches external data (Currency Converter) reads public ECB reference rates and labels both the live source and the dated offline fallback. A shareable link encodes the input values in its URL query string — anyone holding that link can see those values, so do not share sensitive inputs.

Reproducing and citing a result

"Copy result link" on a supported tool page encodes the current inputs into the URL; opening the link restores every field and recomputes. "Copy embed code" produces an iframe with a visible Source link back to the tool page. If you cite a number from this site, link the tool page and state the input values — the formula above is then sufficient to reproduce it.

Last reviewed: 2026-11-05 · Corrections: contact via the site footer.

Advertisement