Concretely, if your work adds $300k/year to company revenue, it will at most pay you that much.
Of course, it prefers to pay you less, and to get close to that number it's best to be part of a big enough labor market that you can get job offers from several employers.
Here's the thing: In a mainly remote programmer labor market, that we seem to be entering, all employers in the entire US are in your local labor market, so that should work out fine.
What I just described is "supply and demand", with a bit of detail.