EL-Problem: I seek a similar code like : if Time = CalcTime(Sess1StartTime, BarInterval) and BarStatus(1) = 2 then begin I want to start the calculation to the first data of the current day without the "sess1starttime" thanks