Calculates the net present value of an investment based on a series of periodic cash flows and a discount rate.
The discount rate of the investment over one period. For example: 8% or 0.08.
The first cash flow. For example: 200.