JA 5117 then LA 2387 at Bogotá
Medellín → Bogota → Lima
Timetable, Bogota time
17:25JA 5117 from Medellín at the gate
17:15LA 2387 to Lima leaves the gate
23 h 50 apart on the timetable, overnight
LA 2387 leaves 23 h 50 after JA 5117 arrives on the timetable: more than half a day, so not a connection we count.