First-time homebuyer’s guide to affordability calculations