according to task description you should write:
if ((Data.TIME > CurTime-2)||(CurTime < 2))