How long Guided Access lasts depends on the time limit that you set for it, if you set the timer. Once the timer runs out, your phone will automatically go out of Guided Access. If you don't set the timer, it will go on indefinitely until you do these methods.