@toolsnap/mortgage-calculator-utils
v1.0.0
Published
Lightweight mortgage calculation utilities — monthly payment, amortization schedule, interest breakdown, and more.
Downloads
56
Maintainers
Readme
@toolsnap/mortgage-calculator-utils
Lightweight, zero-dependency mortgage calculation utilities for Node.js and the browser.
Install
npm install @toolsnap/mortgage-calculator-utilsAPI
monthlyPayment(principal, annualRate, years)
Calculate fixed-rate monthly mortgage payment.
const { monthlyPayment } = require('@toolsnap/mortgage-calculator-utils');
monthlyPayment(300000, 0.065, 30); // 1896.20amortizationSchedule(principal, annualRate, years)
Generate a full month-by-month amortization schedule.
totalInterest(principal, annualRate, years)
Total interest paid over the life of the loan.
effectiveRate(nominalRate, periods)
Effective annual rate from nominal rate.
maxLoanAmount(monthlyBudget, annualRate, years)
Maximum loan amount you can afford given a monthly budget.
Online Calculator
For a full-featured mortgage calculator with extra payment options, comparison tables, and a printable amortization schedule, check out RiseTop Mortgage Calculator.
License
MIT
