When Is the Right Time to Retire