@toolsnap/compound-interest-calc
v1.0.0
Published
Free online Compound Interest Calculator. Calculate compound interest with different compounding frequencies, contributions, and inflation adjustment.
Downloads
83
Maintainers
Readme
Compound Interest Calculator
Free online Compound Interest Calculator — calculate compound interest with different compounding frequencies, monthly contributions, and year-by-year breakdowns.
Installation
npm install @toolsnap/compound-interest-calculatorUsage
const { compoundInterest, withMonthlyContribution, effectiveAnnualRate } = require('@toolsnap/compound-interest-calculator');
// Basic compound interest: $10,000 at 5% for 10 years, compounded monthly
const result = compoundInterest(10000, 0.05, 10, 12);
console.log(result);
// { amount: 16470.09, interest: 6470.09 }
// With monthly contributions: $5,000 initial + $200/month at 7% for 20 years
const savings = withMonthlyContribution(5000, 200, 0.07, 20);
console.log(savings);
// { totalDeposited: 53000, interestEarned: 74292.34, finalAmount: 127292.34 }
// Effective Annual Rate
const ear = effectiveAnnualRate(0.05, 365);
console.log(ear); // 0.05127...API
compoundInterest(principal, rate, time, frequency)
Calculate compound interest on a principal amount.
withMonthlyContribution(principal, monthly, rate, years)
Calculate growth with regular monthly contributions added.
effectiveAnnualRate(nominalRate, frequency)
Convert nominal rate to effective annual rate.
amortizationTable(principal, rate, years, frequency)
Get year-by-year breakdown of balance and interest.
Related Tools
- Compound Interest Calculator — Full-featured web calculator
- Investment Return Calculator — Calculate ROI and annualized returns
- All Free Tools — 500+ free online tools
License
MIT
