It is randomized and controlled by the min/max values for absorption on the GUI; It will start drinking whenever it falls below some random threshold in that range
It will always drink as much as it can just like any regular player to maximize the AFK time; Absorption is 50 per dose, 990 cannot be achieved right in the beginning, it will go for the maximum instead (1000)