UA 2866 then OZ 9523 at San Francisco
Chicago O'Hare → San Francisco → Newark
Timetable, San Francisco time
19:28UA 2866 from Chicago O'Hare at the gate
16:30OZ 9523 to Newark leaves the gate
21 h 02 apart on the timetable, overnight
OZ 9523 leaves 21 h 02 after UA 2866 arrives on the timetable: more than half a day, so not a connection we count.