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