financejs-edit
v4.1.0
Published
A JavaScript library for financial calculations
Downloads
7
Maintainers
Readme
Finance.js
var Finance = require('financejs');
var finance = new Finance();
// To calculate Amortization
finance.AM(20000, 7.5, 5, 0);
// => 400.76
Typescript
import { Finance } from 'financejs'
let finance = new Finance();
// To calculate Amortization
finance.AM(20000, 7.5, 5, 0);
// => 400.76
finance.AM(principal, rate, total number of payments, [type]);
finance.CAGR(beginning value, ending value, number of periods);
finance.CI(rate, compoundings per period, principal, number of periods);
finance.DF(rate, number of periods);
finance.FV(rate, cash flow, number of periods);
finance.IRR(initial investment, [cash flows]);
finance.XIRR([cash flows], [dates], guess);
finance.LR(total liabilities, total debts, total income);
finance.NPV(rate, initial investment, [cash flows]);
finance.PP(number of periods, [cash flows]);
finance.PV(rate, cash flow, number of periods);
finance.PI(rate, initial investment, [cash flows]);
finance.ROI(initial investment, earnings);
finance.R72(rate);
finance.WACC(market value of equity, market value of debt, cost of equity, cost of debt, tax rate);
finance.PMT(fractional interest rate, number of payments, principal);
finance.IAR(investment Return, inflation Rate);
Contributing
Contributions are welcome to aid in the expansion of the library. In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality, and please lint and test your code.
To Do
- Expand library with more financial calculations
- Include edge cases in testing, if any
Contributing
Contributions are welcome to aid in the expansion of the library. In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality, and please lint and test your code.
To Do
- Expand library with more financial calculations
- Include edge cases in testing, if any