UA 3902 then UA 1797 at Houston
Toronto → Houston → Newark
Timetable, Houston time
08:27UA 3902 from Toronto at the gate
06:00UA 1797 to Newark leaves the gate
21 h 33 apart on the timetable, overnight
UA 1797 leaves 21 h 33 after UA 3902 arrives on the timetable: more than half a day, so not a connection we count.