Before you go house or apartment hunting, spend some time calculating a price range that works for you. Here’s how.