the logic I use is t % 5 == 0 {0,5,10,15,20,25,30,35,40,45,50,55,60}----->"Red" t % 5 == 1 {1,6,11,16,21,26,31,36,41,46,51,56} ----->"Green" t % 5 == 2 {2,7,12,17,2,2,27,32,37,42,47,52,57}----->"Green" t % 5 == 3 {3,8,13,18,23,28,33,38,43,48,53,58}----->"Green" t % 5 == 4 {4,9,14,19,24,29,34,39,44,49,54,59}----->"Yellow" So, if t % 5 == 0 red; if t % 5 == 4 yellow; else green; is this logic of mine is correct?