FR 4643 then DY 5503 at Arlanda
Riga → Stockholm → Barcelona
Timetable, Stockholm time
16:20FR 4643 from Riga at the gate
12:30DY 5503 to Barcelona leaves the gate
20 h 10 apart on the timetable, overnight
DY 5503 leaves 20 h 10 after FR 4643 arrives on the timetable: more than half a day, so not a connection we count.