npv function

Net Present Value of a periodic cashflow (NPV)