AC 763 then AC 7290 at Toronto Pearson
Boston → Toronto → Madrid
Timetable, Toronto time
07:50AC 763 from Boston at the gate
07:45AC 7290 to Madrid leaves the gate
23 h 55 apart on the timetable, overnight
AC 7290 leaves 23 h 55 after AC 763 arrives on the timetable: more than half a day, so not a connection we count.