in the case when
timeout is null (both max(timeIn) and max(timeout)=null
timeout is not null (just like STECAL said)