Factors affecting affordability of a home