FR 2514 then FR 5323 at Madrid
Bucharest → Madrid → Milan Bergamo
Timetable, Madrid time
15:00FR 2514 from Bucharest at the gate
11:05FR 5323 to Milan Bergamo leaves the gate
20 h 05 apart on the timetable, overnight
FR 5323 leaves 20 h 05 after FR 2514 arrives on the timetable: more than half a day, so not a connection we count.