We’ve built a calculator that tells you how much you can spend on a new home.