1.1.8 • Published 2 days ago

payment-plan v1.1.8

Weekly downloads
26
License
MIT
Repository
github
Last release
2 days ago

Payment plan

Introduction

Use this lib to calculate payment plan, monthly cost and effective interest.

Install

npm install payment-plan

or

yarn add payment-plan

Functions

FunctionDescription
getEffectiveInterestCalculate the effective interest rate for a loan
getPaymentPlanGenerate a payment plan for a loan
getMonthlyCostCalculate the monthly cost for a specific term of a loan

Inputs

getEffectiveInterest

InputTypeDescriptionDefault Value
loanAmountnumberLoan amount-
termsnumberTotal number of terms-
interestRatenumberAnnual nominal interest rate (as a decimal)-
startFeenumberOne-time start fee-
termFeenumberFee per term-
typeLoanTypes (optional)Loan type (ANNUITY or SERIAL)ANNUITY
planPaymentPlan (optional)Existing payment plan to use instead of generating one-

getPaymentPlan

InputTypeDescriptionDefault Value
loanAmountnumberLoan amount-
interestRatenumberAnnual nominal interest rate (as a decimal)-
termsnumberTotal number of terms-
gracePeriodnumber (optional)Number of grace period terms0
typeLoanTypes (optional)Loan type (ANNUITY or SERIAL)ANNUITY
startFeenumber (optional)One-time start fee0
termFeenumber (optional)Fee per term0

getMonthlyCost

InputTypeDescriptionDefault Value
loanAmountnumberLoan amount-
termsnumberTotal number of terms-
interestRatenumberAnnual nominal interest rate (as a decimal)-
periodnumber (optional)Number of terms per year12
indexnumber (optional)Term index to calculate the monthly cost for0
gracePeriodnumber (optional)Number of grace period terms0
termFeenumber (optional)Fee per term0
typeLoanTypes (optional)Loan type (ANNUITY or SERIAL)ANNUITY

License

MIT License

1.1.8

2 days ago

1.1.7

3 days ago

1.1.6

3 days ago

1.1.1

9 months ago

1.1.0

9 months ago

1.1.2

9 months ago

1.0.1

1 year ago

1.0.0

1 year ago

0.3.1

2 years ago

0.3.0

3 years ago

0.3.0-beta.0

3 years ago

0.3.0-beta.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago