• Annual Income: The user's total annual income before taxes.

  • Monthly Debt Payments: The user's total monthly payments on debts such as car loans, student loans, credit cards, etc.

  • Down Payment: The amount the user has saved for the down payment on a house.

  • Expected Interest Rate: The annual interest rate on the mortgage loan.

  • Loan Term: The length of the mortgage loan (e.g., 30 years, 20 years, 15 years).

  • Input Fields:

    • Annual Income: Users enter their yearly earnings.

    • Monthly Debt Payments: Users provide their total monthly debt obligations.

    • Down Payment: The amount they plan to put down for the home purchase.

    • Expected Interest Rate: The assumed interest rate for their mortgage.

    • Loan Term: The length of the mortgage (15, 20, or 30 years).

  • Calculation Logic:

    • The calculator first determines the maximum monthly payment the user can afford for housing by limiting it to 30% of their monthly income, adjusted for monthly debt obligations.

    • It then calculates the maximum loan amount the user can afford, using the formula for monthly mortgage payments.

    • The affordable home price is the sum of the maximum loan amount and the down payment.