You fell into the trap of trying to loop your way out of a timing feature.
Here's the background on why that won't work:
Here's an app sample that shows how to code the solution, using multiple deadline variables and a single Clock Timer event...