That's highly individual. I did it by leading several fairly involved projects at Google over the course of nearly a decade, and then building two high performance engineering teams from scratch outside Google. I also built a bit of a rare talent stack, which happens to be in heavy demand right now. If you do a good job, people want to work with you again, and don't mind paying pretty penny.