Creating an 8 seconds timer with millis() and pow()

My apologies for posting code in picture format.
I am trying to make an 8 seconds timer of sorts, where each 8 seconds Arduino takes new commands. I am trying to do it through millis() and pow(), where ClockReference = millis() and for i command is used to increase exponents in order to keep up with ever increasing ClockReference.
On practice it doesn’t work, nothing is happening.
1E72D656-4AEA-440F-BE15-74AAD732FCAC.jpg
Was this page helpful?