Quickly calculate monthly payments and the total amount of interest paid for a fixed rate loan.
First install node.js. Then:
npm install loan-calc --save
Require the module and pass the amount of the loan, annual rate, and length of loan in months.
var LoanCalc = ;LoanCalc;// returns 1581.59LoanCalc;// returns 186511.57
You can also pass the loan amount as a US currency formatted string:
LoanCalc;// returns 1581.59