Formula not working

when i appled this formula =IF(EndTime<StartTime,1+EndTime-StartTime,EndTime+StartTime) its not working