CA 195 then TR 874 at Taipei
Shanghai → Taipei → Tokyo Narita
Timetable, Taipei time
16:30CA 195 from Shanghai at the gate
14:25TR 874 to Tokyo Narita leaves the gate
21 h 55 apart on the timetable, overnight
TR 874 leaves 21 h 55 after CA 195 arrives on the timetable: more than half a day, so not a connection we count.