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