FR 4627 then DY 8483 at Arlanda
Krakow → Stockholm → Riga
Timetable, Stockholm time
22:30FR 4627 from Krakow at the gate
20:20DY 8483 to Riga leaves the gate
21 h 50 apart on the timetable, overnight
DY 8483 leaves 21 h 50 after FR 4627 arrives on the timetable: more than half a day, so not a connection we count.