When you do something that you like, and you think you can keep doing it, you don't think about retiring.
If you think that you did everything and know everything and that everything has been done perfectly well, then it's time to retire.