npv function

Computing NPV, the PV of the cash flows less the initial (time = 0) outlay