FR 819 then FR 4038 at Dublin
Edinburgh → Dublin → Milan Bergamo
Timetable, Dublin time
09:00FR 819 from Edinburgh at the gate
06:35FR 4038 to Milan Bergamo leaves the gate
21 h 35 apart on the timetable, overnight
FR 4038 leaves 21 h 35 after FR 819 arrives on the timetable: more than half a day, so not a connection we count.