IB 5353 then EC 7199 at Barcelona
Milan → Barcelona → Edinburgh
Timetable, Barcelona time
12:00IB 5353 from Milan at the gate
06:55EC 7199 to Edinburgh leaves the gate
18 h 55 apart on the timetable, overnight
EC 7199 leaves 18 h 55 after IB 5353 arrives on the timetable: more than half a day, so not a connection we count.