This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const PMT = (rate, nper, pv, fv, type) => { | |
/* | |
* rate - interest rate per month | |
* nper - number of periods (months) | |
* pv - present value | |
* fv - future value | |
* type - when the payments are due: | |
* 0: end of the period, e.g. end of month (default) | |
* 1: beginning of period | |
*/ |