FR 4641 then FR 9170 at Arlanda
Riga → Stockholm → Barcelona
Timetable, Stockholm time
14:00FR 4641 from Riga at the gate
11:20FR 9170 to Barcelona leaves the gate
21 h 20 apart on the timetable, overnight
FR 9170 leaves 21 h 20 after FR 4641 arrives on the timetable: more than half a day, so not a connection we count.