Shopping for a home? Before you begin your search, it’s important to figure out what you can comfortably afford.