UA 2840 then UA 3914 at O'Hare
Newark → Chicago → Houston
Timetable, Chicago time
13:54UA 2840 from Newark at the gate
10:00UA 3914 to Houston leaves the gate
20 h 06 apart on the timetable, overnight
UA 3914 leaves 20 h 06 after UA 2840 arrives on the timetable: more than half a day, so not a connection we count.