H2 5166 then JA 7990 at Lima
Arequipa → Lima → Medellín
Timetable, Lima time
23:10H2 5166 from Arequipa at the gate
19:55JA 7990 to Medellín leaves the gate
20 h 45 apart on the timetable, overnight
JA 7990 leaves 20 h 45 after H2 5166 arrives on the timetable: more than half a day, so not a connection we count.