EC 7154 then IB 2627 at Barcelona
Milan → Barcelona → New York JFK
Timetable, Barcelona time
23:15EC 7154 from Milan at the gate
18:45IB 2627 to New York JFK leaves the gatealso LL 2627, QR 5372, AY 5393, AA 8846
19 h 30 apart on the timetable, overnight
IB 2627 leaves 19 h 30 after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.