FR 2724 then FR 604 at Copenhagen
Krakow → Copenhagen → Budapest
Timetable, Copenhagen time
18:25FR 2724 from Krakow at the gate
11:25FR 604 to Budapest leaves the gate
17 h apart on the timetable, overnight
FR 604 leaves 17 h after FR 2724 arrives on the timetable: more than half a day, so not a connection we count.