EC 7154 then IB 5940 at Barcelona
Milan → Barcelona → Nice
Timetable, Barcelona time
23:15EC 7154 from Milan at the gate
21:20IB 5940 to Nice leaves the gatealso LL 5940, VY 8136
22 h 05 apart on the timetable, overnight
IB 5940 leaves 22 h 05 after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.