JA 5173 then JA 5626 at Bogotá
Santa Marta → Bogota → Bucaramanga
Timetable, Bogota time
23:35JA 5173 from Santa Marta at the gate
13:55JA 5626 to Bucaramanga leaves the gate
14 h 20 apart on the timetable, overnight
JA 5626 leaves 14 h 20 after JA 5173 arrives on the timetable: more than half a day, so not a connection we count.