For loop bug....

The for loop doesn't appear to go through all the iterations.

The code in the image is supposed to return the number of days until a certain event on my calendar. The event in the image is event number 106 (notice the ci(title,106). If I have the for loop set to go from 0 to 365, it will not return the number of days even though event 106 is clearly within that range.

If I change the for loop to something different... say 100 to 365, it does return the correct number of days.

Is there a limit on how many iterations the for loop in kustom can handle?

It also appears that ci(title,some number) peaks out in the 170ish range. Is that the limit as well?