A Little Guesswork
The next step requires a little guesswork. If you have a vague idea of what price you might qualify for, you can estimate what your annual property taxes and homeowners insurance might cost. From there, you can easily calculate the monthly equivalent. Subtract those figures from your maximum monthly housing costs total.
If you are buying a condominium (or an area with HOA fees), subtract out an approximate figure to cover homeowners association fees. What you are left with is your maximum principal and interest payment.