UA 2364 then AC 5432 at San Francisco
Newark → San Francisco → Chicago O'Hare
Timetable, San Francisco time
22:52UA 2364 from Newark at the gatealso VA 8513
22:45AC 5432 to Chicago O'Hare leaves the gatealso NZ 9303
23 h 53 apart on the timetable, overnight
AC 5432 leaves 23 h 53 after UA 2364 arrives on the timetable: more than half a day, so not a connection we count.