How does the disconnect after ... minutes work?

I confuse that how the time of disconnect function works? The time is counted when I click start bot button or the time of time status in the game.

It does start count from the moment your char entered into game. It doesn’t matter you stopped bot or not during this time. But your bot must be running on for to return and disconnect.