Skip to content

Instantly share code, notes, and snippets.

@quantizor
Created June 25, 2014 01:54
Show Gist options
  • Save quantizor/fb49faa066c837518af0 to your computer and use it in GitHub Desktop.
Save quantizor/fb49faa066c837518af0 to your computer and use it in GitHub Desktop.
Mortgage Loan Qualification Equation
Total qualified mortgage amount = ( 0.5 - c(m/(1-(1+m)^-n)) - T(c) - I(c) + R((A-d*12)/12) ) / ( m/(1-(1+m)^-n) + T + I )
A = gross annual income
I = decimal insurance rate
R = decimal maximum allowed payment/income ratio based on creditworthiness (44% -> 0.44, etc.)
T = decimal tax rate / 12
c = down payment
d = gross monthly debt
i = decimal interest rate
m = i / 12
n = total number of months
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment