Giter VIP home page Giter VIP logo

amortization's Introduction

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.

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

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

Typedefs

MonthlyPayment : Object
YearlyPayment : Object

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

Generates an amortization schedule.

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

Param Type Description
principal number The opening principal of the loan
monthsDuration number The number of months for the loan
yearlyRate number The 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

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 payment
interestPaymentRounded number rounded version of interestPayment
principalPayment number amount of monthly principal payment
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

YearlyPayment : Object

Kind: global typedef
Properties

Name Type Description
paymentNumber number number of payment in the yearly schedule
payment number total amount of yearly loan payment
paymentRounded number rounded version of payment
interestPayment number amount of yearly interest payment
interestPaymentRounded number rounded version of interestPayment
principalPayment number amount of yearly principal payment
principalPaymentRounded number rounded version of principalPayment

amortization's People

Contributors

eithanshavit avatar justinkasad avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.