loan-calc

0.2.1 • Public • Published

Build Status

Quickly calculate monthly payments and the total amount of interest paid for a fixed rate loan.

Installation

First install node.js. Then:

npm install loan-calc --save

Usage

Require the module and pass the amount of the loan, annual rate, and length of loan in months.

var LoanCalc = require('loan-calc');
 
LoanCalc.paymentCalc({
    amount: 200000,
    rate: 5,
    termMonths: 180
});
// returns 1581.59
 
LoanCalc.totalInterest({
    amount: 200000,
    rate: 5,
    termMonths: 360
});
// returns 186511.57

You can also pass the loan amount as a US currency formatted string:

LoanCalc.paymentCalc({
    amount: '$200,000',
    rate: 5,
    termMonths: 180
});
// returns 1581.59

Package Sidebar

Install

npm i loan-calc

Weekly Downloads

141

Version

0.2.1

License

Public Domain

Last publish

Collaborators

  • meissadia
  • billhimmelsbach
  • harrisj_gov
  • allenjo
  • wmhiggins
  • flacoman91
  • cfpbadmin
  • adamdscott
  • contolini
  • mistergone
  • wpears
  • anselmbradford
  • himedlooff
  • scotchester