Compoundify › How we calculate

How Our Calculators Work

Every calculator here is plain arithmetic. This page lists the formulas behind the main tools, the conventions they follow and the rules built in, so you can check any result by hand or in a spreadsheet.

Last reviewed November 19, 2026. Results are hypothetical estimates, not forecasts or guarantees. See Accuracy and limits for what the numbers can and cannot tell you.

Conventions used everywhere

Growth and saving

Compound interest and investment growth

Starting from your opening balance, each month the balance is multiplied by (1 + i) and then your monthly deposit is added. Interest earned is the final balance minus everything you put in.

balance = balance × (1 + i) + deposit (repeated every month) interest earned = final balance − (start + deposits)

Savings goal

To reach a target T from a starting amount S over N months at monthly rate i, the monthly amount needed is below. If the rate is zero it is just (T − S) ÷ N, and it never goes below zero.

k = (1 + i)^N monthly amount = (T − S × k) × i ÷ (k − 1)

Doubling time and the Rule of 72

The exact time to double at annual rate r percent, the quick estimate, and the return needed to double in y years:

exact years = ln(2) ÷ ln(1 + r/100) Rule of 72 estimate = 72 ÷ r return needed = 2^(1/y) − 1

Inflation

With yearly inflation i over y years, the same purchase costs more and the same money buys less:

k = (1 + i/100)^y future cost = today’s cost × k buying power of today’s money = amount ÷ k

Borrowing

Loan payment

For a loan of P over n monthly payments with the annual rate divided by 12 as i:

payment = P × i ÷ (1 − (1 + i)^−n)

If the rate is zero, the payment is P ÷ n. This is the same calculation as the PMT function in a spreadsheet.

Amortization schedule and extra payments

Each period, interest is the current balance × i, and the rest of the payment reduces the balance. The final payment is capped at what is still owed. An extra payment is added to every regular payment and goes entirely to principal, which shortens the schedule and cuts total interest.

interest = balance × i principal paid = payment − interest new balance = balance − principal paid

Debt payoff (snowball and avalanche)

Each month, interest (balance × APR ÷ 12) is added to every debt and every minimum payment is made. Your total monthly budget is the sum of the minimums plus any extra, and it stays fixed, so the minimum on a debt you have cleared rolls into the next one. Whatever is left after the minimums goes to one target debt: the smallest balance for the snowball method, or the highest APR for the avalanche method.

Credit card payoff

Each month, interest (balance × APR ÷ 12) is added, then a payment is made. In minimum-payment mode the payment is the greater of a fixed floor and a percentage of the balance. In fixed mode it is the amount you choose. If a fixed payment does not even cover the first month’s interest, the calculator reports that the balance will never be paid off.

Mortgages

Home affordability

Two limits are applied to gross monthly income: housing costs (GDS) of at most 39% and total debt payments (TDS) of at most 44%. The cap is the smaller of 39% of income and 44% of income minus your other debts. Payments are tested at a qualifying rate, which is the greater of your rate plus 2 percentage points and 5.25%. The calculator then solves for the largest loan whose payment, plus property tax and other housing costs, fits under the cap, and adds your down payment to get a price.

Retirement and independence

FIRE number and years to get there

Yearly spending is income × (1 − savings rate). The target is yearly spending ÷ the withdrawal rate. Each month the balance grows by the monthly return and your savings (income × savings rate ÷ 12) are added, until the balance reaches the target. If that takes more than 100 years, the calculator reports that the target is not reached.

target = yearly spending ÷ withdrawal rate

Retirement projection

Your balance grows monthly with contributions, and contributions rise each year by the step-up you enter. Values are also shown in today’s money by dividing by (1 + inflation)^years. Needed savings are (yearly spending − other income) ÷ withdrawal rate, in today’s money.

Withdrawal simulator

Year 1 withdrawal is the starting balance × the withdrawal rate. Each year, the withdrawal is taken, the remainder grows by the return you enter, and the next withdrawal is raised by inflation. The simulation stops when the money runs out or after 60 years.

Investment fees

The net return is the gross return minus the fee, converted to a monthly rate with the formula at the top of this page. Two funds are then grown side by side with the same starting amount and deposits, so the gap is the cost of the fee difference.

net return = gross return − fee

Rules and figures we build in

A few calculators rely on rules that organizations set and can change. We checked the CMHC premium rates and the minimum qualifying rate against the official CMHC and OSFI websites on November 19, 2026. Always confirm current figures with your lender, and with the Canada Revenue Agency for tax rules and registered-account limits.

Worked examples you can check

Try these in the calculators, in a spreadsheet, or with a scientific calculator.

Questions

Think a formula is wrong, or want another calculator explained here? Read Accuracy and limits, then write to contact@compoundify.ca. Compoundify is an educational project, and nothing here is financial, tax or legal advice.