FR 5712 then W6 4816 at Madrid
Budapest → Madrid → Skopje
Timetable, Madrid time
09:05FR 5712 from Budapest at the gate
22:20W6 4816 to Skopje leaves the gate
13 h 15 apart on the timetable
W6 4816 leaves 13 h 15 after FR 5712 arrives on the timetable: more than half a day, so not a connection we count.