This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('form').on('submit', function(e){ | |
// Keeps the form from refreshing the page | |
e.preventDefault(); | |
// Cached reference to the form (the less lookups the better) | |
var self = $(this); | |
// Combs through the form and converts all the inputs into serialized versions to be | |
// interpreted by wherever you are sending the data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |