@toolsnap/loan-calculator
v1.0.0
Published
Free online Loan Calculator. Calculate monthly payments, total interest, and amortization schedules for any loan type.
Maintainers
Readme
Loan Calculator
Free online Loan Calculator — calculate monthly payments, total interest, and full amortization schedules for any loan type.
Installation
npm install @toolsnap/loan-calculatorUsage
const { monthlyPayment, amortizationSchedule, compareLoans } = require('@toolsnap/loan-calculator');
// Calculate monthly payment: $300,000 at 6.5% for 30 years
const result = monthlyPayment(300000, 0.065, 360);
console.log(result);
// { monthlyPayment: 1896.20, totalInterest: 382631.57, totalCost: 682631.57 }
// Full amortization schedule
const schedule = amortizationSchedule(300000, 0.065, 360);
console.log(schedule[0]);
// { month: 1, payment: 1896.2, principal: 271.2, interest: 1625, balance: 299728.8 }
// Compare two loans
const comparison = compareLoans(
{ principal: 250000, rate: 0.06, months: 360 },
{ principal: 250000, rate: 0.055, months: 360 }
);
console.log(comparison.savings); // Savings from lower rateRelated Tools
- Loan Calculator — Full-featured web calculator with charts
- Mortgage Payoff Calculator — See how extra payments save money
- All Free Tools — 500+ free online tools
License
MIT
