change the order of the condition to check with 'TimePassed' is equal to 'CycleFinishTime'