AC 888 then UA 123 at Heathrow
Ottawa → London → Newark
Timetable, London time
09:20AC 888 from Ottawa at the gate
08:00UA 123 to Newark leaves the gate
22 h 40 apart on the timetable, overnight
UA 123 leaves 22 h 40 after AC 888 arrives on the timetable: more than half a day, so not a connection we count.