You’ll need to factor in more than just the asking price. Here’s a guide to help you create a budget for buying a home.