FR 2897 then IB 2334 at Barcelona
Palma de Mallorca → Barcelona → Badajoz
Timetable, Barcelona time
16:45FR 2897 from Palma de Mallorca at the gate
13:50IB 2334 to Badajoz leaves the gate
21 h 05 apart on the timetable, overnight
IB 2334 leaves 21 h 05 after FR 2897 arrives on the timetable: more than half a day, so not a connection we count.