How to run a sketch for a fixed amount of time from power-on

Explain what happens when the time is up. An Arduino never stops your loop() part of your code.
Paul