FR 7599 then FR 316 at Arlanda
Budapest → Stockholm → Porto
Timetable, Stockholm time
20:50FR 7599 from Budapest at the gate
14:10FR 316 to Porto leaves the gate
17 h 20 apart on the timetable, overnight
FR 316 leaves 17 h 20 after FR 7599 arrives on the timetable: more than half a day, so not a connection we count.