1.1.1 • Published 8 years ago

amortization v1.1.1

Weekly downloads
138
License
ISC
Repository
github
Last release
8 years ago

amortization

A simple module to calculate the amortization schedule of a loan.

Install

npm install amortization --save

API Documentation

Functions

Typedefs

amortizationSchedule(principal, yearsDuration, yearlyRate) ⇒ Array.<MonthlyPayment>

Generates an amortization schedule.

Kind: global function
Returns: Array.<MonthlyPayment> - - Each item in the array is a monthly loan payment object

ParamTypeDescription
principalnumberThe opening principal of the loan
yearsDurationnumberThe number of years for the load
yearlyRatenumberThe yearly rate for the loan

yearlyAmortizationSchedule(principal, yearsDuration, yearlyRate) ⇒ Array.<YearlyPayment>

Generates a yearly amortization schedule with the pricipal, interest, and payment of each year of the loan.

Kind: global function
Returns: Array.<YearlyPayment> - - Each item in the array is a payment object

ParamTypeDescription
principalnumberThe opening principal of the loan
yearsDurationnumberThe number of years for the load
yearlyRatenumberThe yearly rate for the loan

MonthlyPayment : Object

Kind: global typedef
Properties

NameTypeDescription
paymentNumbernumbernumber of payment in the schedule
paymentnumbertotal amount of monthly loan paid
interestPaymentnumberamount of monthly interest payment
interestPaymentRoundednumberrounded version of interestPayment
principalPaymentnumberamount of monthly principal payment
principalPaymentRoundednumberrounded version of principalPayment
principalBalancenumberbalance of loan principal after payment
principalBalanceRoundednumberrounded version of principalBalance
accInterestnumbertotal interest paid so to date
accInterestRoundednumberrounded version of accInterest

YearlyPayment : Object

Kind: global typedef
Properties

NameTypeDescription
paymentNumbernumbernumber of payment in the yearly schedule
paymentnumbertotal amount of yearly loan payment
paymentRoundednumberrounded version of payment
interestPaymentnumberamount of yearly interest payment
interestPaymentRoundednumberrounded version of interestPayment
principalPaymentnumberamount of yearly principal payment
principalPaymentRoundednumberrounded version of principalPayment
1.1.1

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.4

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago