Struggling to make a loop run for x amount of time

What is "x"?
You can measure a "certain period of time" against millis():