cashflowjs
v1.0.4
Published
Utility functions for time value of money calculations
Downloads
18
Maintainers
Readme
cashflowjs
Description
cashflowjs is a JavaScript NPM package that exposes utility functions to solve time value of money calculations.
Features
- Calculate present value (PV) of a single cash flow
- Calculate present value (PV) of a single cash flow with continuous compounding
- Calculate future value (FV) of a single cash flow
- Calculate future value (FV) of a single cash flow with continuous compounding
Installation
Use the package manager npm to install cashflowjs.
npm install cashflowjs
Usage
var cashflowjs = require('cashflowjs');
# returns 90
cashflowjs.pv(99, .1, 1, 1);
# returns 99
cashflowjs.fv(90, .1, 1, 1);
Support
For issue submission please visit GitHub
Roadmap
- Add calculations for ordinary annuity
- Add calculations for annuity due
Contributing
Pull requests are welcome for bug resolution. Please open an issue prior to initiating a pull request.