1.2.2 • Published 1 year ago

excel-npv v1.2.2

Weekly downloads
1
License
MIT
Repository
github
Last release
1 year ago

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

  1. Investopedia
1.2.2

1 year ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago