Loan Amount with $5,800 Payment

What's the most money you can borrow with a $5,800 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 $5,800, an interest rate of 5.00%, and a payback period of 20 years:
Maximum loan amount = $878,847
Most you can borrow with a $5,800 payment?
Loan amount based on interest rate and payback period
3 years 5 years 7 years 10 years 20 years 30 years
3.0% $199,441 $322,784 $438,952 $600,658 $1,045,803 $1,375,698
4.0% $196,450 $314,935 $424,324 $572,867 $957,127 $1,214,875
5.0% $193,521 $307,346 $410,361 $546,832 $878,847 $1,080,433
6.0% $190,652 $300,008 $397,028 $522,426 $809,568 $967,391
7.0% $187,841 $292,912 $384,292 $499,533 $748,099 $871,784
8.0% $185,088 $286,047 $372,124 $478,045 $693,415 $790,444
9.0% $182,391 $279,406 $360,493 $457,862 $644,641 $720,835
10.0% $179,749 $272,979 $349,373 $438,893 $601,023 $660,915