Here’s exactly how to figure out how much rent you can afford