Exactly right. The numbers might vary, but the basic principle is that the reward for staying goes down[1] and the feasibility of getting out goes up and at some point the lines cross. For me it was just over one year ago, at 55. For someone else it might be at 40, or 70. And good for anyone who gets there.
[1] For most people. There are a few "plum" roles where it keeps going up, but I honestly don't think that's the norm.
I didn't have a goal, I had a low cost of living and high income and a big interest in technology. So I invested a good bit of my income into GOOG, and then into TSLA. Over the years those have turned into a lot of money.
I quit when we hit a 2 year mark without any new customers.