Methodology: How We Calculate

Last updated:

This page writes out the arithmetic behind every calculator on the site: the formula, the parameters and their defaults, the assumptions the result depends on, and the date the page was last reviewed. It is meant to be complete enough that you can rebuild any result in a spreadsheet and compare. Where a rule comes from outside this site, the citation is on the sources page with the year of the version that was read.

Shared conventions

Five rules apply to all ten calculators, and they matter because most disagreements about a calculator turn out to be a rounding decision rather than a wrong formula.

1. Mortgage payment

Equation for a fully amortizing fixed-rate loan, plus escrow-style costs that are collected with the payment but are not part of the loan balance.

P = homePrice - downAmount r = rate / 100 / 12 n = termYears * 12 PI = (r == 0) ? P / n : P * r * (1 + r)^n / ((1 + r)^n - 1) LTV0 = P / homePrice pmiActive = LTV0 > 0.80 && pmiRate > 0 // strictly greater: exactly 80% pays no PMI pmiMonthly0 = pmiActive ? P * pmiRate / 100 / 12 : 0 monthlyTax = homePrice * taxRate / 100 / 12 monthlyIns = insYear / 12 monthly = PI + monthlyTax + monthlyIns + hoa + (pmiActive ? pmiMonthly0 : 0) totalInterest = PI * n - P totalPMI = pmiMonthly0 * pmiMonths totalCost = PI * n + (monthlyTax + monthlyIns + hoa) * n + totalPMI

Parameters. Home price (default 400,000), down payment in dollars (80,000) kept in step with down payment in percent (20), interest rate (6.5% a year), term in years (30, selectable from 1 to 40), property tax rate (1.2% of price a year), homeowners insurance (1,800 a year), HOA dues (0 a month), and PMI rate (0.55% of the loan a year). A down payment entered as a percentage and one entered as an amount update each other.

Assumptions. The rate is fixed for the whole term; there is no reset, no balloon, and no negative amortization. PMI starts with the first payment when the loan is above 80% of the price and the PMI rate entered is above zero, and it stops in the first month the simulated balance is at or below 78% of the home price. That stop month is where the statutory termination date falls on an unaccelerated schedule: the Homeowners Protection Act fixes the termination date by the original amortization schedule at 78% of the original value (12 U.S.C. §4901(18)), so a prepayment moves our stop month earlier than the statute's date, and the borrower-requested cancellation at 80% is not modelled. PMI is charged only for the months it is actually active, so total PMI uses the real count of months, not the full term. Property tax and insurance are held flat. Closing costs, discount points, prepaid interest, prepayment penalties, and extra payments are outside the model. The results show the first payment with PMI and the payment after PMI ends as separate figures, because averaging them over 30 years would misstate today's bill.

Last reviewed: 2026-11-20. Page: Mortgage Payment Calculator.

2. Amortization schedule

The same loan as above, simulated month by month at full precision, with an optional extra principal payment.

balance = P // full precision, not cents for each month: interest = balance * r principal = payment - interest + extra if (principal >= balance) { principal = balance; cash = balance + interest; balance = 0 } else { balance -= principal } if (balance / homePrice) <= 0.78: PMI = 0 from this month

Parameters. Every field from the mortgage calculator, plus an extra monthly principal payment (default 0).

Assumptions. Interest accrues on the opening balance each month before the payment is applied. The extra payment goes to principal, not to escrow. PMI stops in the first month the balance-to-price ratio reaches 78%, using the simulated balance rather than the original schedule, so extra payments bring the stop forward. Balance and payment stay at full precision through the loop, and the last row absorbs the residual: it takes whatever balance remains as principal, so the closing balance is exactly zero and the final payment can differ from the earlier ones by a few cents. Outputs include total interest, interest as a share of payments, total PMI, the PMI stop month, and the interest and months saved by the extra payment.

Last reviewed: 2026-11-20. Page: Amortization Schedule Calculator.

3. Refinance break-even

Two payments on the same balance, and the number of months the monthly saving needs to repay the closing costs.

oldPI = pmt(balance, currentRate / 100 / 12, remainingYears * 12) newPI = pmt(balance, newRate / 100 / 12, newYears * 12) monthlySave = oldPI - newPI if monthlySave <= 0: stop, "Refinancing does not lower your payment" breakEvenMonths = ceil(closingCosts / monthlySave) lifetimeInterestDiff = (oldPI * oldN - balance) - (newPI * newN - balance) if breakEvenMonths > remainingYears * 12: "You will not break even before the loan ends"

Parameters. Current balance, current rate, years remaining on the current loan, new rate, new term in years, and closing costs as a single cash figure.

Assumptions. The new loan replaces the old one at the same balance; nothing is rolled into the new loan and no cash is taken out. Closing costs are paid in cash at closing and are not financed, which is why they are compared against the monthly saving rather than added to the balance. Both rates are fixed for their terms. The break-even month is rounded up, because a fraction of a month is not a month in which the cost is recovered. When the new payment is not lower, no break-even is computed at all: a longer term can lower a payment while raising total interest, and the lifetime interest difference is reported so that trade-off is visible.

Last reviewed: 2026-11-20. Page: Refinance Break-Even Calculator.

4. Auto loan

Sales tax, trade-in credit, and an optional GAP fee, then a standard amortizing payment.

taxBase = taxOnFullPrice ? price : (price - tradeIn) salesTax = taxBase * salesTaxRate / 100 P = price - down - tradeIn + salesTax + (includeGap ? gapCost : 0) // trade-in is subtracted here, exactly once, and never again monthly = pmt(P, rate / 100 / 12, termMonths) totalOutOfPocket = monthly * termMonths + down // a financed GAP fee is already inside P and is repaid through the payment; // adding it again to cash out of pocket would double-count it (ruling R-13)

Parameters. Vehicle price, down payment, trade-in value, sales tax rate, interest rate, term in months, GAP cost (a fixed fee), a checkbox for including the GAP fee, and a checkbox that switches the tax base between the net-of-trade-in figure and the full price.

Assumptions. The default tax base is price minus trade-in, which is how most states tax a vehicle purchase; the full-price option exists because some states do not allow the trade-in credit. The trade-in is a credit against the amount financed, not cash, so it is subtracted once inside the loan amount and is never subtracted again from the cash total. The GAP fee, when included, is part of the amount financed and is also reported as its own line so the fee stays visible; because it is already inside the loan amount and repaid through the monthly payment, it is not added to cash out of pocket a second time. Registration, title, documentation, dealer add-ons, and insurance are outside the model. The rate is fixed and the loan amortizes to zero over the term.

Last reviewed: 2026-11-20. Page: Auto Loan Calculator.

5. Debt payoff (snowball and avalanche)

One simulator, two orderings. Each month every debt is charged interest first and paid its minimum, then the leftover budget attacks one target debt.

each month: 1. for every open debt: interest = balance * rate / 100 / 12; balance += interest 2. every debt receives its own minimum payment 3. the remaining budget goes to the target debt 4. when a debt reaches zero, its minimum rolls into next month's budget and the next target is chosen 5. month += 1; stop when every balance is zero, or when month > 600 ordering key: snowball = balance ascending avalanche = interest rate descending ties on either key: balance ascending // fixed secondary key (without the secondary key the order is unstable and results are not reproducible) if monthlyBudget < sum(minimums): "Your budget is below the total minimum payments"

Parameters. Two to six debts, each with a name, balance, annual rate, and minimum payment, plus one monthly budget figure.

Assumptions. Rates are fixed, no new debt is added, the budget is the same every month, and interest is computed before the payment in each month. Minimum payments are made on every debt, including the target, so the target receives its minimum plus the surplus. The 600-month stop prevents an endless run when a minimum barely covers interest. When both strategies produce the same month count and the same total interest, for example when every debt carries the same rate, the page says so instead of claiming one strategy is cheaper; the tie rule is part of the method, not decoration. Fees, late charges, and promotional rate expirations are outside the model.

Last reviewed: 2026-11-20. Page: Debt Payoff Calculator.

6. Loan payoff time

How many months a fixed payment needs to retire a balance, solved in closed form rather than by simulation.

r = rate / 100 / 12 if r == 0: n = balance / monthlyPay else if r * balance >= monthlyPay: "Payment never covers interest — balance never reaches zero" else: n = -ln(1 - r * balance / monthlyPay) / ln(1 + r) n = ceil(n) // always round up

Parameters. Current balance, annual interest rate, and the monthly payment you intend to make.

Assumptions. The first payment is one month after the balance date, the rate is fixed, and the payment is the same every month. The payment-never-covers test is strict: when the first month's interest equals or exceeds the payment, the balance cannot fall, and the page says so rather than returning an enormous month count. A zero rate is handled as a separate branch, because the logarithm is undefined there. The month count is rounded up, since a partial month is still a payment. Total interest is the payment times the month count minus the balance. Where the page shows a comparison against a baseline payment, that figure comes from a second run of the same formula.

Last reviewed: 2026-11-20. Page: Loan Payoff Time Calculator.

7. Overtime pay

Two rule sets: the federal weekly rule and the California daily rule. They are separate selections, because they produce different answers for the same hours.

FLSA, weekly rule: regular = min(hoursWeek, 40) * hourlyRate overtime = max(hoursWeek - 40, 0) * hourlyRate * 1.5 pay = regular + overtime California, daily rule, for a workday of d hours: regular = min(d, 8) * hourlyRate time and a half = (d > 8) ? (min(d, 12) - 8) * hourlyRate * 1.5 : 0 double time = (d > 12) ? (d - 12) * hourlyRate * 2 : 0 day pay = regular + time and a half + double time California, seventh consecutive workday: first 8 hours at 1.5x, hours beyond 8 at 2x

Parameters. Hourly rate, hours worked in the week, rule selection (FLSA or California), hours worked in the day, and the number of consecutive days worked for the seventh-day rule.

Assumptions. The federal rule is a weekly test only: hours above 40 in the workweek are paid at one and a half times the regular rate, and there is no daily test under the FLSA for the employees this calculator covers. The California rule is a daily test: above 8 hours in a day and above 40 in a workweek at one and a half times, above 12 hours in a day at double time, the first 8 hours of the seventh consecutive day at one and a half times, and anything beyond that on the seventh day at double time. The hourly rate entered is treated as the regular rate.

Limitation: the weekly 40-hour correction is not stacked on the daily total. The California result counts daily premiums and seventh-day premiums; it does not then apply a separate 40-hour weekly threshold on top and pay a second premium for hours already counted as daily overtime. California Labor Code §510 states that nothing in the section requires an employer to combine more than one rate of overtime compensation for the same hour, and the calculator follows that reading. The model also leaves out alternative workweek schedules, collective bargaining arrangements, exempt-status questions, bonuses and shift differentials that would change the regular rate, split shifts, and every state other than California. It is a pay estimate, not a payroll determination or legal advice.

Last reviewed: 2026-11-20. Page: Overtime Pay Calculator.

8. Down payment

What a target percentage costs, what it leaves to borrow, and how far the loan sits from the 80% line where private mortgage insurance stops applying.

down = homePrice * targetPct / 100 P = homePrice - down LTV = P / homePrice pmiApplies = LTV > 0.80 gapTo20Percent = max(P - homePrice * 0.80, 0) monthlyPI = pmt(P, rate / 100 / 12, termYears * 12) monthlyPMI = pmiApplies ? P * pmiRate / 100 / 12 : 0

Parameters. Home price, target down payment percentage, interest rate, term in years, and PMI rate as an annual percentage of the loan.

Assumptions. Loan-to-value is measured against the home price, not against an appraised value, and PMI applies only when that ratio is strictly above 80%. The comparison table for 5%, 10%, 15%, and 20% down shows principal and interest plus PMI only; property tax, homeowners insurance, HOA dues, and closing costs are excluded, and the table header says so, because a four-tier table read as a full monthly bill would overstate every row. All four tiers use the same rate, term, and PMI rate you entered. The gap to 20% is what the loan would have to shrink by to reach the 80% line, not a savings target.

Last reviewed: 2026-11-20. Page: Down Payment Calculator.

9. Rent versus buy

Cash flow and net cost are kept apart on purpose. The down payment appears once, as its own line, and is never folded into a yearly cash-flow figure.

P = homePrice * (1 - downPct / 100) down = homePrice * downPct / 100 monthlyPI = pmt(P, rate / 100 / 12, termYears * 12) for y = 1 .. horizon: hp(y) = homePrice * (1 + appreciation / 100)^y rentCF(y) = rent * 12 * (1 + rentGrowth / 100)^(y-1) piMonths(y) = max(0, min(12, termMonths - 12 * (y - 1))) buyCF(y) = monthlyPI * piMonths(y) + hp(y) * taxRate / 100 + insYear * (1 + 0.03)^(y-1) + hp(y) * maintRate / 100 bal(y) = remaining balance from the amortization routine netValue(y) = hp(y) * (1 - sellCostPct / 100) - bal(y) downOpp(y) = down * (1 + investReturn / 100)^y cumulativeRent(y) = sum of rentCF(1..y) cumulativeBuyNet(y) = down + homePrice * buyClosingPct / 100 + sum of buyCF(1..y) + (downOpp(y) - down) - netValue(y)

Parameters. Monthly rent, home price, down payment percentage, mortgage rate, term in years, property tax rate, annual insurance, maintenance rate, home appreciation rate, rent growth rate, horizon in years, buying closing cost percentage, selling cost percentage, and the return the down payment could otherwise earn.

Assumptions, stated flatly because they drive the answer. Homeowners insurance rises 3% a year and that figure is fixed, not a field. Buying closing costs default to 3% of the price, selling costs to 6% of the sale price, and the opportunity cost of the down payment to 5% a year. Maintenance is a field and defaults to 1% of the home's value a year. The balance comes from a closed-form balance loop that applies the same last-period close-out rule as the schedule page; both are pinned to the same benchmark values in our test suite. Principal and interest are counted only for the months the mortgage is still running, through piMonths(y), so a mortgage paid off inside the horizon stops contributing principal and interest while property tax, insurance and maintenance continue (R-9). The down payment is listed as a single line and is excluded from the yearly buy cash flow, so it is never counted twice. The opportunity cost line is the growth on the down payment minus the down payment itself, because the down payment is already counted once. Private mortgage insurance and HOA dues are not included: a down payment below 20% would normally carry PMI, and a condominium or planned community would carry dues, so a comparison that ignores them overstates the buy case. Mortgage interest tax deductions, renters insurance, utilities, moving costs, and selling-time vacancy are also excluded. The seven-year verdict and the break-even year are read off the same two cumulative series; if the series never cross inside the horizon, the page says buy does not break even rather than extrapolating.

Last reviewed: 2026-11-20. Page: Rent vs. Buy Calculator.

Precision and rounding, in one place

The following is the full rounding contract. It is stated once here so that a discrepancy can be traced to a rule rather than guessed at.

Changing a formula

A calculation convention changes only when the reasoning behind it changes, and never silently. When a convention changes, three things change in the same edit: the formula on this page, the code on the calculator page, and the last-reviewed date. Each calculator carries fixed benchmark cases, at least one of them a boundary case, and a change that moves a benchmark value has to be explained rather than absorbed. The review routine is described on the author page, the citations are on the sources page, and the limits on what a result means are on the disclaimer.