Returns the net present value of an investment based on a series of periodic cash flows and a discount rate