UA 582 then UA 3906 at San Francisco
Boston → San Francisco → Newark
Timetable, San Francisco time
12:09UA 582 from Boston at the gate
07:00UA 3906 to Newark leaves the gate
18 h 51 apart on the timetable, overnight
UA 3906 leaves 18 h 51 after UA 582 arrives on the timetable: more than half a day, so not a connection we count.