FR 2514 then W4 6014 at Madrid
Bucharest → Madrid → Rome
Timetable, Madrid time
22:35FR 2514 from Bucharest at the gate
20:40W4 6014 to Rome leaves the gate
22 h 05 apart on the timetable, overnight
W4 6014 leaves 22 h 05 after FR 2514 arrives on the timetable: more than half a day, so not a connection we count.