npm install financejs --save
var Finance = require('financejs'); // or ES6 import
var fx = new Finance();
// To calculate Amortization
fx.AM(20000, 7.5, 5, 0);
// => 400.76
Amortization is the paying off of debt with a fixed repayment schedule in regular installments over a period of time.
More functions from the library
– Compound Annual Growth Rate (CAGR):
finance.CAGR(beginning value, ending value, number of periods);
– Compound Interest (CI)
finance.CI(rate, compoundings per period, principal, number of periods);
– Discount Factor (DF)
finance.DF(rate, number of periods);
– Future Value (FV)
finance.FV(rate, cash flow, number of periods);
– Internal Rate of Return (IRR)
finance.IRR(initial investment, [cash flows]);
– Leverage Ratio (LR)
finance.LR(total liabilities, total debts, total income);
Strictly Necessary Cookies
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.