UA 3553 then AC 7266 at Toronto Pearson
Newark → Toronto → Tocumen
Timetable, Toronto time
09:14UA 3553 from Newark at the gate
08:40AC 7266 to Tocumen leaves the gate
23 h 26 apart on the timetable, overnight
AC 7266 leaves 23 h 26 after UA 3553 arrives on the timetable: more than half a day, so not a connection we count.