JA 5167 then IB 154 at Bogotá
Cartagena → Bogota → Madrid
Timetable, Bogota time
22:50JA 5167 from Cartagena at the gate
22:35IB 154 to Madrid leaves the gate
23 h 45 apart on the timetable, overnight
IB 154 leaves 23 h 45 after JA 5167 arrives on the timetable: more than half a day, so not a connection we count.