JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 45
  • Score
    100M100P100Q76476F
  • License ISC

Calculate a loan amortization schedule

Package Exports

  • amortization

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (amortization) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

amortization

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

Install

npm install amortization --save

API Documentation

Functions

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

Generates an amortization schedule

Typedefs

MonthlyPayment : Object

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

Generates an amortization schedule

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

Param Type Description
principal number The opening principal of the loan
yearsDuration number The number of years for the load
yearlyRate number The yearly rate for the loan

MonthlyPayment : Object

Kind: global typedef
Properties

Name Type Description
paymentNumber number number of payment in the schedule
payment number total amount of monthly loan paid
interestPayment number amount of monthly interest paid
interestPaymentRounded number rounded version of interestPayment
principalPayment number amount of monthly principal paid
principalPaymentRounded number rounded version of principalPayment
principalBalance number balance of loan principal after payment
principalBalanceRounded number rounded version of principalBalance
accInterest number total interest paid so to date
accInterestRounded number rounded version of accInterest