Taxes and cost of living make your $300,000 salary more like $100,000 in New York and San Francisco