Know what you can afford before you begin your home search.