loan-calculations

1.0.1 • Public • Published

loan-calculations

NPM version Build Status Coveralls Status Dependency Status Downloads

Module for providing loan and interest calculations.

Install

npm i loan-calculations

API

Functions

getSumPaid(term, monthly, date, installmentDay)

Calculates total amount paid

getInstallment(amount, interestRate, term, roundingFn)Promise

Single installment value

getRpsn(amount, term, monthly, date, installmentDay)

Calculates loan yearly percentage rate

getSumPaid(term, monthly, date, installmentDay)

Calculates total amount paid

Kind: global function

Param Type Description
term number Number of installments
monthly number Monthly payment
date Date Acceptance date
installmentDay number Day in month of installment payment

getInstallment(amount, interestRate, term, roundingFn) ⇒ Promise

Single installment value

Kind: global function

Param Type Description
amount number Loan amount
interestRate number Loan interest rate
term number Number on installments (monthly payments)
roundingFn function Rounding function

getRpsn(amount, term, monthly, date, installmentDay)

Calculates loan yearly percentage rate

Kind: global function

Param Type Description
amount number Loan amount
term number Number of installments
monthly number Monthly payment
date Date Acceptance date
installmentDay number Day in month of installment payment

Example

getRpsn(120000, 60, 2700, new Date('2016-07-05'), 5)

Author

  • Viktor Bezdek (@viktorbezdek)
  • Petr Certik (@czert)

License

MIT © SiteOne

Package Sidebar

Install

npm i loan-calculations

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • viktorbezdek