AC 740 then BR 659 at Toronto Pearson
San Francisco → Toronto → Taipei
Timetable, Toronto time
19:55AC 740 from San Francisco at the gate
15:31BR 659 to Taipei leaves the gate
19 h 36 apart on the timetable, overnight
BR 659 leaves 19 h 36 after AC 740 arrives on the timetable: more than half a day, so not a connection we count.