Christy....
Thanks again for replying to my posts. I had already changed
the 11 to a 23.
The time for the procedure is 22:04 – 3:34.
My current translation of what you sent is below.
Thanks again.
Tom
NumberVar startHour := Hour({@TimeInRoom});
//
This is a formula for {caseintraop.pat_or_in_datetime}
NumberVar endHour :=
Hour({@TimeOutRoom});
// This is a formula for
{caseintraop.pat_or_out_datetime}
IF endHour < startHour
THEN
IF (7 >= startHour AND 23 >= startHour) OR
// first day
(0 <= endHour AND 7 <=
endHour)
// second day
THEN
1
***Not sure why I would want a 1 here?
ELSE IF 22 >= startHour AND 22 <= endHour
THEN 1
ELSE 0