In the game you are asking about, the sleeping potion runs for 42 hours before it wears off.
That is a long window, so it is worth planning around rather than treating it as a quick fix — anything you want to accomplish while a character is under has to happen inside those two days.