EW 3180 then FR 5323 at Madrid
Prague → Madrid → Milan Bergamo
Timetable, Madrid time
13:05EW 3180 from Prague at the gate
11:05FR 5323 to Milan Bergamo leaves the gate
22 h apart on the timetable, overnight
FR 5323 leaves 22 h after EW 3180 arrives on the timetable: more than half a day, so not a connection we count.