AA 2225 then CI 5301 at JFK
Miami → New York → Toronto
Timetable, New York time
21:30AA 2225 from Miami at the gate
12:55CI 5301 to Toronto leaves the gate
15 h 25 apart on the timetable, overnight
CI 5301 leaves 15 h 25 after AA 2225 arrives on the timetable: more than half a day, so not a connection we count.