Originally found as a GIST: https://gist.github.com/raadk/dcd503815bbb271484ff
excelpmt(rate, nper, pv, fv = 0, type = 0)
| rate | interest rate |
|---|---|
| nper | number of periods |
| pv | present value |
| fv | future value (default is |
| type | maturity of the payment; |
excelpmt(rate = .03, nper = 60, pv = 60000)#> [1] -2167.978