AC 118 then AC 2004 at Toronto Pearson
Vancouver → Toronto → Fredericton
Timetable, Toronto time
23:59AC 118 from Vancouver at the gate
21:00AC 2004 to Fredericton leaves the gate
21 h 01 apart on the timetable, overnight
AC 2004 leaves 21 h 01 after AC 118 arrives on the timetable: more than half a day, so not a connection we count.