\mindpowered\carloancalculatorCarLoanCalculator

car loan calculator

Summary

Methods
Properties
Constants
__construct()
CalcPayments()
CalcAffordability()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() 

CarLoanCalculator

CalcPayments()

CalcPayments(float  $newCarPrice, float  $tradeInAllowance, float  $tradeInLoanBalance, float  $downPaymentAndRebates, float  $loanDuration, float  $salesTaxRate, float  $interestRate) : array

Calculate what the payments would be from the price of the new car and the parameters of the monthly loan payments

Parameters

float $newCarPrice

price of the car new

float $tradeInAllowance

trade-in value

float $tradeInLoanBalance

loan balance after trade-in

float $downPaymentAndRebates

total amount of rebates plus downpayment

float $loanDuration

loan duration in months

float $salesTaxRate

sales tax as percentage

float $interestRate

interest rate as percentage

Returns

array —

payments and total interest

CalcAffordability()

CalcAffordability(float  $monthlyPayment, float  $tradeInAllowance, float  $tradeInLoanBalance, float  $downPaymentAndRebates, float  $loanDuration, float  $salesTaxRate, float  $interestRate) : float

Calculate the price of the car from the monthly loan payment information

Parameters

float $monthlyPayment

monthly payment amount

float $tradeInAllowance

trade-in value

float $tradeInLoanBalance

loan balance after trade-in

float $downPaymentAndRebates

total amount of rebates plus downpayment

float $loanDuration

loan duration in months

float $salesTaxRate

sales tax rate as percentage

float $interestRate

interest rate as percentage

Returns

float —

target price with tax and fees