UA 2858 then AA 3176 at LAX
Newark → Los Angeles → San Francisco
Timetable, Los Angeles time
20:18UA 2858 from Newark at the gate
12:37AA 3176 to San Francisco leaves the gate
16 h 19 apart on the timetable, overnight
AA 3176 leaves 16 h 19 after UA 2858 arrives on the timetable: more than half a day, so not a connection we count.