Optimum switching time (question)

I won’t whip my TT anymore, yet I would like to know from you whether someone can tell me when the optimal switching time is from Gang A to B for the train and for the city. I can drive, probably not bad, but that’s it. Who knows if I did everything “right” to speed up for example “right”. Can you calculate or read something like this, or are there only experiences?