W6 2251 then FR 8523 at Copenhagen
Budapest → Copenhagen → Poznan
Timetable, Copenhagen time
08:35W6 2251 from Budapest at the gate
06:10FR 8523 to Poznan leaves the gate
21 h 35 apart on the timetable, overnight
FR 8523 leaves 21 h 35 after W6 2251 arrives on the timetable: more than half a day, so not a connection we count.