Dear Yousuf,
Thank you for the heads up, this looks short and to the point. However, my alternative was the below but it's a quite long. On the above i now realized i was missing 3rd logical function and the allocation of the interval in terms of changing the cycle from 5,10,15,20 etc. Many Thanks