Mortgage Payment to Price

Calculate the most expensive house you could buy based on a monthly payment.
Monthly payment
$
Down payment
$
Interest rate
%
Loan term
With a monthly mortgage payment of $2,000, a 30-year loan loan at 6.75%, and a $80,000 down payment:
Maximum house price = $388,357