W4 6013 then FR 5713 at Madrid
Rome → Madrid → Budapest
Timetable, Madrid time
19:55W4 6013 from Rome at the gate
18:15FR 5713 to Budapest leaves the gate
22 h 20 apart on the timetable, overnight
FR 5713 leaves 22 h 20 after W4 6013 arrives on the timetable: more than half a day, so not a connection we count.