FR 3008 then W4 3174 at Madrid
Milan → Madrid → Bucharest
Timetable, Madrid time
19:50FR 3008 from Milan at the gate
18:35W4 3174 to Bucharest leaves the gate
22 h 45 apart on the timetable, overnight
W4 3174 leaves 22 h 45 after FR 3008 arrives on the timetable: more than half a day, so not a connection we count.