FR 5494 then FR 7157 at Madrid
Milan Bergamo → Madrid → Dublin
Timetable, Madrid time
21:55FR 5494 from Milan Bergamo at the gate
21:15FR 7157 to Dublin leaves the gate
23 h 20 apart on the timetable, overnight
FR 7157 leaves 23 h 20 after FR 5494 arrives on the timetable: more than half a day, so not a connection we count.