FR 7599 then FR 848 at Arlanda
Budapest → Stockholm → Rabat
Timetable, Stockholm time
20:50FR 7599 from Budapest at the gate
13:40FR 848 to Rabat leaves the gate
16 h 50 apart on the timetable, overnight
FR 848 leaves 16 h 50 after FR 7599 arrives on the timetable: more than half a day, so not a connection we count.