How to think about things when it's the right time? Is there a good way to train that?

To be able to pause thinking about something that you can't change right now, until it's actually time. That might be one day, one week or one month later.
What you refer to is probably 'controlling' your mind, which is a common practice called 'mindfulness training', i.e., learning to observe thoughts without interacting with them.