In the nation’s most expensive areas, you’ll need to be in the top 20% to 30% of household earners to afford a median-priced home.