calcufly-finance
v1.0.0
Published
Professional finance calculator functions - mortgage, loan, investment, retirement, tax calculations. By CalcuFly.com
Maintainers
Readme
calcufly-finance
Professional finance calculator functions for Node.js. Mortgage, loan, investment, retirement, tax, ROI and more.
Part of the CalcuFly calculator suite — 600+ free online calculators.
Installation
npm install calcufly-financeQuick Start
const finance = require('calcufly-finance');
// Mortgage calculation
const mortgage = finance.mortgage(300000, 6.5, 30);
console.log(mortgage.monthlyPayment); // 1896.20
// Compound interest
const growth = finance.compoundInterest(10000, 7, 10);
console.log(growth.futureValue); // 20096.61
// ROI
const roi = finance.roi(5000, 7500);
console.log(roi.roiPercent); // 50%API Reference
| Function | Description |
|----------|-------------|
| mortgage(principal, rate, years) | Monthly mortgage payment |
| compoundInterest(principal, rate, years, n) | Compound interest growth |
| simpleInterest(principal, rate, years) | Simple interest |
| loanPayment(principal, rate, years) | Loan monthly payment |
| amortizationSchedule(principal, rate, years) | Full amortization table |
| roi(initial, final) | Return on investment |
| profitMargin(revenue, cost) | Gross profit margin |
| breakEven(fixed, price, cost) | Break-even analysis |
| futureValue(pv, rate, years) | Future value of money |
| presentValue(fv, rate, years) | Present value of money |
| ruleOf72(rate) | Years to double investment |
| retirementSavings(...) | Retirement planning |
| fireNumber(expenses, rate) | FIRE movement target |
| tipCalculator(bill, tipPct, people) | Tip splitting |
| discountPrice(price, pct) | Discount calculation |
| inflationAdjust(amount, rate, years) | Inflation adjustment |
| depreciationStraightLine(cost, salvage, life) | Depreciation schedule |
Try these calculations online at CalcuFly.com — free, no signup required.
License
MIT — CalcuFly
