FR 4687 then FR 4616 at Arlanda
Málaga → Stockholm → Gdansk
Timetable, Stockholm time
10:30FR 4687 from Málaga at the gate
06:05FR 4616 to Gdansk leaves the gate
19 h 35 apart on the timetable, overnight
FR 4616 leaves 19 h 35 after FR 4687 arrives on the timetable: more than half a day, so not a connection we count.