powered by
Calculates the net present value of a series of cash flows.
calc_npv(rate, cashflows)
Net present value.
Discount rate per period (decimal).
Vector of cash flows (first is typically negative investment).
calc_npv(rate = 0.1, cashflows = c(-1000, 300, 400, 500))
Run the code above in your browser using DataLab