UA 3581 then Y8 7456 at O'Hare
Ottawa → Chicago → Shanghai
Timetable, Chicago time
08:00UA 3581 from Ottawa at the gate
01:35Y8 7456 to Shanghai leaves the gate
17 h 35 apart on the timetable, overnight
Y8 7456 leaves 17 h 35 after UA 3581 arrives on the timetable: more than half a day, so not a connection we count.