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