W6 2391 then FR 1062 at Madrid
Budapest → Madrid → Warsaw Modlin
Timetable, Madrid time
08:45W6 2391 from Budapest at the gate
21:45FR 1062 to Warsaw Modlin leaves the gate
13 h apart on the timetable
FR 1062 leaves 13 h after W6 2391 arrives on the timetable: more than half a day, so not a connection we count.