Fund it
The highest price a buyer can carry, read from income, existing debts, down payment and the rate the lender actually charges.
The method
The maximum instalment is the share of monthly income the lender accepts, minus the debts already being paid. That instalment is discounted at the loan rate over the term to give the loan amount, and the down payment is added to reach the maximum purchase price.