Coding re Sphero time limit

The children have to move Sphero around a map. I want to put a time limit for them to complete the entire map. How do I code using Blocks please? Any help gratefully received. Tried Loop until, which works but sure there must be a better way

SPHERO Email Marketing -