IB 5389 then QR 3662 at Barcelona
Bari → Barcelona → Milan
Timetable, Barcelona time
23:20IB 5389 from Bari at the gatealso LL 5389, VY 6113
17:00QR 3662 to Milan leaves the gatealso IB 5362, LL 5362, VY 6050
17 h 40 apart on the timetable, overnight
QR 3662 leaves 17 h 40 after IB 5389 arrives on the timetable: more than half a day, so not a connection we count.