EC 7102 then IB 5092 at Barcelona
Basel → Barcelona → Porto
Timetable, Barcelona time
14:40EC 7102 from Basel at the gate
13:00IB 5092 to Porto leaves the gate
22 h 20 apart on the timetable, overnight
IB 5092 leaves 22 h 20 after EC 7102 arrives on the timetable: more than half a day, so not a connection we count.