Description Usage Arguments Details Value Note See Also Examples
Calculates the net present value for a series of cash flows, and provides a time diagram of the cash flows.
1 |
cf0 |
cash flow at period 0 |
cf |
vector of cash flows |
times |
vector of the times for each cash flow |
i |
interest rate per period |
plot |
tells whether or not to plot the time diagram of the cash flows |
NPV=cf0-∑_{k=1}^n\frac{cf_k}{(1+i)^{times_k}}
The NPV.
The periods in t must be positive integers.
The lengths of cf and t must be equal.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.