FR 3008 then FR 2513 at Madrid
Milan → Madrid → Bucharest
Timetable, Madrid time
08:40FR 3008 from Milan at the gate
06:55FR 2513 to Bucharest leaves the gate
22 h 15 apart on the timetable, overnight
FR 2513 leaves 22 h 15 after FR 3008 arrives on the timetable: more than half a day, so not a connection we count.