UA 3852 then LH 7887 at San Francisco
Ontario → San Francisco → Newark
Timetable, San Francisco time
14:00UA 3852 from Ontario at the gate
07:00LH 7887 to Newark leaves the gatealso OS 7990
17 h apart on the timetable, overnight
LH 7887 leaves 17 h after UA 3852 arrives on the timetable: more than half a day, so not a connection we count.