Arduino timer with buttons

if (currentTime >= (loopTime + 5000));

Yes, it does need modification.

Where did you find it?