How far in advance of playing outside can you put on sunscreen and have it be effective?

Assume that the child is playing inside for the duration listed.

Select the furthest in advance you think....