Loan Amount with $4,000 Payment

What's the most money you can borrow with a $4,000 monthly payment? Calculate the loan amount based on interest rate and payback period.
Monthly payment
$
Interest rate
%
Payback period
Results
With a monthly payment of $4,000, an interest rate of 9.00%, and a payback period of 15 years:
Maximum loan amount = $394,374
Most you can borrow with a $4,000 payment?
Loan amount based on interest rate and payback period
3 years 5 years 7 years 10 years 20 years 30 years
3.0% $137,546 $222,609 $302,725 $414,247 $721,244 $948,758
4.0% $135,483 $217,196 $292,637 $395,081 $660,087 $837,845
5.0% $133,463 $211,963 $283,007 $377,125 $606,101 $745,126
6.0% $131,484 $206,902 $273,812 $360,294 $558,323 $667,166
7.0% $129,546 $202,008 $265,029 $344,505 $515,930 $601,230
8.0% $127,647 $197,274 $256,637 $329,686 $478,217 $545,134
9.0% $125,787 $192,693 $248,616 $315,767 $444,580 $497,127
10.0% $123,965 $188,261 $240,947 $302,685 $414,498 $455,803