FR 5712 then W4 6314 at Madrid
Budapest → Madrid → Milan
Timetable, Madrid time
09:05FR 5712 from Budapest at the gate
23:10W4 6314 to Milan leaves the gate
14 h 05 apart on the timetable
W4 6314 leaves 14 h 05 after FR 5712 arrives on the timetable: more than half a day, so not a connection we count.