How do you know if the price of a particular house fits your budget?

A. the lender accepts your mortgage application
B. by calculating yearly income and monthly debt
C. by taking out homeowners insurance and paying property tax