An extradimensional space is brought into being upon the utterance of a maze spell. The subject vanishes into the shifting labyrinth of force planes for a period of time that is dependent upon its Intelligence. (Note: Minotaurs are not affected by this spell.)
Intelligence of Time Trapped
Mazed Creature in Maze
under 3 2d4 turns
3-5 1d4 turns
6-8 5d4 rounds
9-11 4d4 rounds
12-14 3d4 rounds
15-17 2d4 rounds
18+ 1d4 rounds
Note that teleport and dimension door spells will not help a character escape a maze spell, although a plane shifting spell will.