UX 1040 then FR 5323 at Madrid
Rome → Madrid → Milan Bergamo
Timetable, Madrid time
13:05UX 1040 from Rome at the gatealso ET 1424, EY 4333, AM 6926, AZ 7116, AD 7897
11:05FR 5323 to Milan Bergamo leaves the gate
22 h apart on the timetable, overnight
FR 5323 leaves 22 h after UX 1040 arrives on the timetable: more than half a day, so not a connection we count.