Skip to main content

Last reviewed November 29, 2026

Methodology & Formulas

Every calculation on CalcNivo runs in pure, unit-tested TypeScript modules with full internal floating-point precision — rounding only when formatting values for display.

Core engineering principles

  • Separation of math and UI: Calculation engines live in standalone pure TypeScript modules independent of interface components, allowing automated Vitest verification on every build.
  • Round only for display: Monthly amortization loops, tiered electricity slabs, and multi-card debt rollovers retain full unrounded precision between months to prevent cumulative rounding drift.
  • Editable assumptions everywhere: Rather than hiding assumptions inside static multipliers, tax rates, allowances, ERC percentages, duty cycles, and minimum payment floors are user-editable.
  • Single-source country configuration: All regional thresholds and official links reside in one audited file (country-rules.ts) with explicit review dates and verification notices for variable or legislative items.

Formulas by calculator

1. Rent Affordability Calculator

Gross housing ratio equals ((Monthly Rent + Monthly Utilities) / Roommates) / Monthly Gross Income × 100. Net cash flow subtracts personal housing, monthly debt service, other fixed bills, and the user's net-income savings target from net take-home pay. Stress tests apply simultaneous income-drop (0%–50%) and rent-increase (0%–30%) adjustments and divide emergency fund balance by any resulting monthly essential shortfall.

2. Mortgage Overpayment Calculator

Standard monthly repayment uses M = P × r × (1 + r)^n / ((1 + r)^n − 1) where r = Annual Rate / 12; when r = 0, M = P / n. Month-by-month simulation caps penalty-free overpayments against the annual allowance (resetting each 12-month mortgage year on the year-start balance), charges ERC only on excess overpayments during fixed-deal months, supports both reduce-term and reduce-payment modes, handles final partial payments cleanly, and compares net savings after ERC against compounding identical extra cash flows at the entered after-tax savings rate.

3. Overtime Pay Calculator

Overtime pay equals OT Hours × Hourly Wage × Multiplier, and the overtime premium portion equals OT Hours × Hourly Wage × (Multiplier − 1). California preset applies 1.5x over 8 daily hours (up to 12) and 2.0x over 12 daily hours while capping straight-time at 40 weekly hours. Optional U.S. qualified overtime deduction estimates apply strictly to the annualized FLSA premium portion subject to editable statutory caps and MAGI phase-out limits.

4. Electricity Cost Calculator

Active consumption per appliance equals (Watts × Hours/Day / 1,000) × Days/Month × Quantity × Duty Cycle, plus optional standby energy over the remaining idle hours. Energy cost supports flat rates, progressive tiered slabs, and peak/off-peak time-of-use splits, plus fixed monthly standing charges and simple appliance replacement payback (New Price / Annual Electricity Savings).

5. Credit Card Payoff Calculator

Simulates up to 10 cards month by month (capped at 600 months) using Monthly Interest = Balance × (Effective APR / 12), paying minimums first and directing surplus budget to either the highest-APR card (Avalanche) or lowest-balance card (Snowball) while rolling freed minimums forward. Flags negative amortization immediately whenever payments fail to cover accrued interest.

Centralized country rules & official sources

Below is the complete registry of reference benchmarks stored in our configuration file. Items marked with a verification notice vary by contract, state, or current-year legislation and should always be checked against your official statement or agency guidance.

Tool & RegionRule / ConventionReference SummaryOfficial Source & Reviewed
United Statesrent30% Gross Income Cost-Burden GuidelineRent + utilities <= 30% of gross incomeHUD User — Defining Housing AffordabilityReviewed 2026-11-29
United StatesrentLandlord Income-Multiple Screening (36x–40x)3x monthly or 40x annual gross income (editable)

VERIFY: Private landlord income multiples vary by city, building, and local source-of-income laws.

NYC HPD Tenant Rights & Market GuidanceReviewed 2026-11-29
United KingdomrentUK Letting Agent Referencing MultipleCommonly 30x monthly rent in annual gross income (editable)

VERIFY: Referencing ratios are set by individual letting agents and insurers, not UK statute.

GOV.UK — How to Rent GuideReviewed 2026-11-29
AustraliarentAustralia 30% Housing Stress ThresholdHousing costs > 30% of gross income (benchmark)Australian Bureau of Statistics — Housing Occupancy and CostsReviewed 2026-11-29
United KingdommortgageTypical UK Fixed-Rate Annual Overpayment Allowance10% of remaining balance per mortgage year (editable)

VERIFY: While 10% per year is common across major UK lenders, some deals allow 0%, 5%, or 20% and calculate the 10% on either the original loan or anniversary balance.

MoneyHelper (UK Money and Pensions Service) — Overpaying Your MortgageReviewed 2026-11-29
United KingdommortgageEarly Repayment Charge (ERC) on Fixed DealsTypically 1%–5% of excess overpayment during fixed term (editable)

VERIFY: Exact ERC percentage steps down each year of a fixed deal; check your mortgage offer or Key Facts Illustration (ESIS).

FCA Handbook MCOB 12.3 — Early Repayment ChargesReviewed 2026-11-29
AustraliamortgageAustralian Fixed-Rate Extra Repayment Caps & Break CostsFixed loans often cap extra repayments (e.g., A$10,000–A$30,000/yr)

VERIFY: Australian break costs depend on wholesale swap-rate movements as well as lender caps; confirm with your lender.

ASIC Moneysmart — Paying Off Your Mortgage FasterReviewed 2026-11-29
United States (Federal)overtimeFLSA Weekly Overtime Threshold1.5x regular rate after 40 hours in a workweek (non-exempt)U.S. Department of Labor — Fact Sheet #23: Overtime Pay Requirements of the FLSAReviewed 2026-11-29
United States (California)overtimeCalifornia Daily & Double-Time Overtime1.5x over 8 hrs/day (or 40/wk); 2x over 12 hrs/dayCalifornia Department of Industrial Relations — OvertimeReviewed 2026-11-29
United States (Federal Tax Estimate)overtimeQualified Overtime Deduction Estimate (Premium Portion Only)Up to $12,500 single / $25,000 joint; phase-out starts at $150k / $300k MAGI

VERIFY: Confirm current-year statutory caps, MAGI phase-out rules, W-2 reporting requirements, and FLSA-qualified premium eligibility directly on IRS.gov.

IRS — Federal Tax Guidance & Overtime CompensationReviewed 2026-11-29
United StatesovertimePayroll Withholding vs. Final Tax LiabilityDefault editable withholding rate 22% (user-adjustable)

VERIFY: Actual paycheck withholding depends on W-4 entries, payroll method (aggregate vs. supplemental), FICA, and state/local taxes.

IRS Publication 15 (Circular E) — Employer's Tax GuideReviewed 2026-11-29
AustraliaovertimeAustralia Award Overtime MultipliersOften 1.5x first 2 hours then 2.0x (varies by Modern Award)

VERIFY: Exact overtime triggers and multipliers depend on your specific Modern Award or Enterprise Agreement.

Fair Work Ombudsman — When Overtime AppliesReviewed 2026-11-29
United StateselectricityReference Residential Electricity RateEditable default $0.16/kWh (check your utility bill)

VERIFY: Residential kWh prices vary widely by state, utility, season, and tier; enter the exact rate from your current bill.

U.S. Energy Information Administration (EIA) — Electric Power MonthlyReviewed 2026-11-29
United KingdomelectricityUK Energy Price Cap & Standing Charge StructureUnit rate per kWh + daily standing charge (editable)

VERIFY: Ofgem updates the GB price cap quarterly and rates differ by region and payment method.

Ofgem — Energy Price Cap LevelsReviewed 2026-11-29
AustraliaelectricityAustralia Default Market Offer & Time-of-Use TariffsPeak / off-peak / shoulder blocks + daily supply charge

VERIFY: Distribution network tariffs and peak windows vary by state and retailer.

Australian Energy Regulator — Energy Made EasyReviewed 2026-11-29
IndiaelectricityIndia Domestic Slab (Tiered) TariffsProgressive kWh slabs + fixed connected-load charge

VERIFY: State Electricity Regulatory Commissions (SERCs) publish distinct slab limits and rates for each Indian state and DISCOM.

Central Electricity Authority (India) — Tariff & Electricity ReportsReviewed 2026-11-29
United Statescredit cardCredit Card Minimum Payment & Daily Balance CompoundingCommonly 1%–2% of balance + interest, floor $25–$35 (editable)

VERIFY: Issuers set their own minimum payment formula and usually calculate interest on average daily balance rather than monthly balance/12.

Consumer Financial Protection Bureau — Credit Card Disclosures & StatementsReviewed 2026-11-29
United Kingdomcredit cardUK Persistent Credit Card Debt RulesPaying more in interest/fees than principal over 18–36 monthsFinancial Conduct Authority — Handbook CONC 6.7 (Persistent Credit Card Debt)Reviewed 2026-11-29
Australiacredit cardAustralian Credit Card Minimum Repayment WarningStatements show 2-year vs. minimum repayment interest impactASIC Moneysmart — Credit Cards & Paying Off DebtReviewed 2026-11-29