PD 766 then AC 745 at Toronto Pearson
Cancún → Toronto → San Francisco
Timetable, Toronto time
18:59PD 766 from Cancún at the gate
18:40AC 745 to San Francisco leaves the gate
23 h 41 apart on the timetable, overnight
AC 745 leaves 23 h 41 after PD 766 arrives on the timetable: more than half a day, so not a connection we count.