I don’t know about this math. What if you change jobs and hate the new job? How do you put a dollar value on months wasted working at a place that’s not a good fit for you.
There’s only a 33% chance a job will work out. That is, that both you and the employer agree it’s a good fit after a year. So you are more likely to fail in a job change, and the odds get worse the more jobs you change.