cashflowjs
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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.

License

MIT

Package Sidebar

Install

npm i cashflowjs

Weekly Downloads

3

Version

1.0.4

License

MIT

Unpacked Size

4.32 kB

Total Files

5

Last publish

Collaborators

  • rjwehrle