This is how you should calculate whether you'd be better off renting a house or buying a house.