FR 2724 then W6 2252 at Copenhagen
Krakow → Copenhagen → Budapest
Timetable, Copenhagen time
10:30FR 2724 from Krakow at the gate
09:05W6 2252 to Budapest leaves the gate
22 h 35 apart on the timetable, overnight
W6 2252 leaves 22 h 35 after FR 2724 arrives on the timetable: more than half a day, so not a connection we count.