A budget approach for comparing housing affordability