Class: CarLoanCalculator

CarLoanCalculator()

car loan calculator

Constructor

new CarLoanCalculator()

Source:

Methods

CalcAffordability(monthlyPayment, tradeInAllowance, tradeInLoanBalance, downPaymentAndRebates, loanDuration, salesTaxRate, interestRate) → {Promise}

Calculate the price of the car from the monthly loan payment information
Parameters:
Name Type Description
monthlyPayment number monthly payment amount
tradeInAllowance number trade-in value
tradeInLoanBalance number loan balance after trade-in
downPaymentAndRebates number total amount of rebates plus downpayment
loanDuration number loan duration in months
salesTaxRate number sales tax rate as percentage
interestRate number interest rate as percentage
Source:
Returns:
target price with tax and fees Promise will resolve to type number.
Type
Promise

CalcPayments(newCarPrice, tradeInAllowance, tradeInLoanBalance, downPaymentAndRebates, loanDuration, salesTaxRate, interestRate) → {Promise}

Calculate what the payments would be from the price of the new car and the parameters of the monthly loan payments
Parameters:
Name Type Description
newCarPrice number price of the car new
tradeInAllowance number trade-in value
tradeInLoanBalance number loan balance after trade-in
downPaymentAndRebates number total amount of rebates plus downpayment
loanDuration number loan duration in months
salesTaxRate number sales tax as percentage
interestRate number interest rate as percentage
Source:
Returns:
payments and total interest Promise will resolve to type array.
Type
Promise