Code:
if  Hours   - Set_Hour <0 then
          OT_Days    = Days - 1
          OT_Hours   = 24 - Set_Hour  + Hours 
      endif
typo fixed