With rents rising, more people are crunching the numbers to see if they can afford to buy.