Knowing when it’s time to pack up your desk and move on to new adventures is one of the most important skills you can master in your career.