400k- taxes = 270k for joined filing
Monthly expenses = 3k mortgage+ 500 property taxes + 2k daycare for one child(or 529) + 1.5k for food and other = 84k
Without compounding interest you need 10 years to get 2m, and these salaries are for 5+ or more years of experience. (And you need down payment, etc.).
Living in those areas is expensive.
If you are making 500k, that's a different story :-)