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