Use a POT to control a time limit

Read the POT using analog in. Write or scale that value into the variable you use in your time delay loop.

No need for interrupts or other complex processing. Every time through loop read the POT and update the variable with the delay time.