U2 3217 then FR 846 at Barcelona
Edinburgh → Barcelona → Milan Bergamo
Timetable, Barcelona time
18:40U2 3217 from Edinburgh at the gate
16:55FR 846 to Milan Bergamo leaves the gate
22 h 15 apart on the timetable, overnight
FR 846 leaves 22 h 15 after U2 3217 arrives on the timetable: more than half a day, so not a connection we count.