IB 151 then JA 5642 at Bogotá
Madrid → Bogota → Cucuta
Timetable, Bogota time
16:35IB 151 from Madrid at the gate
08:35JA 5642 to Cucuta leaves the gate
16 h apart on the timetable, overnight
JA 5642 leaves 16 h after IB 151 arrives on the timetable: more than half a day, so not a connection we count.