FR 4584 then IB 2334 at Barcelona
Porto → Barcelona → Badajoz
Timetable, Barcelona time
18:55FR 4584 from Porto at the gate
13:50IB 2334 to Badajoz leaves the gate
18 h 55 apart on the timetable, overnight
IB 2334 leaves 18 h 55 after FR 4584 arrives on the timetable: more than half a day, so not a connection we count.