| calc_nper | R Documentation |
Calculates the number of periods for an investment.
calc_nper(pv, fv = 0, rate, pmt = 0, type = 0)
pv |
Present value. |
fv |
Future value. |
rate |
Interest rate per period (decimal). |
pmt |
Payment per period (optional, default = 0). |
type |
Payment timing: 0 for end of period, 1 for beginning of period. |
Number of periods.
calc_nper(pv = -1000, fv = 2000, rate = 0.05)
calc_nper(pv = 0, fv = 100000, rate = 0.01, pmt = -500)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.