I want to calculate max loan amount a client can get having this info:
- loan terms in years
- Interest Rate Percentage
- Max Monthly payment
- The loan Interest calculation is semi annual compounding
I have used this formula:
termInMonths = termInyears * 12;
monthlyInterestRate = InterestRatePercentage / 1200;
maxLoanAmount = maxMonthlyPayment * ((((1 + monthlyInterestRate) ^ termInMonths) - 1) / (monthlyInterestRate * ((1 + monthlyInterestRate) ^ termInMonths)));
I have also tried this formula (http://www.financeformulas.net/Present_Value_of_Annuity.html):
termInMonths = termInyears * 12;
monthlyInterestRate = InterestRatePercentage / 1200;
maxLoanAmount = maxMonthlyPayment * ((1 - ((1 + monthlyInterestRate) ^ (-termInMonths))) / monthlyInterestRate)
But the results does not match. I am trying to mach the results with Canadian Mortgage and Housing Corporation https://www.cmhc-schl.gc.ca/en/co/buho/buho_020.cfm
Any help is appreciated.