How We Verify Formulas

Accuracy is the only feature that matters in a calculator. This page documents the approach used to source, implement, test and update formulas. Test coverage varies by calculator.

1. Formula review process

  1. Locate the formula in a primary source (regulator, scheme operator, standards body, textbook of record).
  2. Cross-check against at least one independent primary source where possible.
  3. Translate the formula into the calculator's input vocabulary, preserving units and conventions.
  4. Document the formula, every variable and every assumption on the published page.

2. Testing methodology

Each calculator is covered by automated Vitest test suites executing:

  • Reference cases — values published by the official source or computed by hand are reproduced exactly.
  • Boundary cases — minimum / maximum statutory limits, zero, very large numbers.
  • Invalid input cases — negative values, non-numeric input, out-of-range tenures. The calculator must throw a readable error.

Tests run on every code change. A calculator cannot be released if any test fails.

3. Edge-case testing

  • Currency rounding and the IEEE-754 floating-point trap (we round at display time only).
  • Tenure expressed in months vs years.
  • Compounding frequency boundaries (annual / quarterly / monthly).
  • Leap years for date-sensitive calculators.
  • Locale-specific number formatting (en-IN, en-US, en-GB).

4. Accuracy verification

Where the issuing body publishes its own calculator (e.g. India Post, NPS Trust, EPFO, RBI EMI tools), our output is benchmarked against those tools for a battery of representative inputs. Discrepancies of more than ₹1 / 1 unit are investigated before release.

5. Update procedures

  • Statutory rates and other time-sensitive inputs are updated when relevant official changes are identified and incorporated into the calculator.
  • Illustrative bank-rate assumptions reflect published information available when the relevant calculator content or defaults are prepared. Actual offers can change.
  • Tax and regulatory assumptions should be checked against the current guidance of the relevant issuing authority before making financial decisions.

See also: Calculator Methodology and Editorial Policy.

Reporting an error: If you believe a formula or default rate is incorrect, please email support@creditloancalculator.com with the calculator URL and the source you'd like us to verify against. We acknowledge formula reports within 2 business days.