(trunc(tba.DATEEND-sysdate)*24)<=24 and (trunc(tba.DATEEND-sysdate)*24)>0
---------------->>>
trunc((sysdate-tba.DATEEND)*24) between 0 and 24