excel-npv
v1.2.2
Published
Get Finance NPV values as similar to Excel NPV function with Node package solution.
Downloads
14
Readme
excel-npv
Get Finance NPV values as similar to Excel NPV function with Node package solution.
var Finance = require('excel-npv');
var finance = new Finance();
// To calculate NPV
finance.NPV(3.125, -100000, 50000, 40000, 30000, 20000);
// => 30,192.11
Typescript
import { Finance } from 'excel-npv'
let finance = new Finance();
// To calculate NPV
finance.NPV(3.125, -100000, 50000, 40000, 30000, 20000);
// => 30,192.11
finance.NPV(discountRate, intialInvestment, [cash flows]);
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.
Reference
- Investopedia