Thats a pretty easy calculation. As generation bonus is 30 per gen. All you need to do is divide the required xp - 1000 base xp by 30. Ofcourse ignoring the gen bonus xp cap.
8892403 - 1000 / 30 = 296380,1 generations
So you need to retire 296381 times.