W4 3171 then FR 9602 at Madrid
Bucharest → Madrid → Rome
Timetable, Madrid time
09:45W4 3171 from Bucharest at the gate
06:00FR 9602 to Rome leaves the gate
20 h 15 apart on the timetable, overnight
FR 9602 leaves 20 h 15 after W4 3171 arrives on the timetable: more than half a day, so not a connection we count.