JA 8751 then JA 7027 at Lima
Medellín → Lima → Cusco
Timetable, Lima time
13:50JA 8751 from Medellín at the gate
10:40JA 7027 to Cusco leaves the gate
20 h 50 apart on the timetable, overnight
JA 7027 leaves 20 h 50 after JA 8751 arrives on the timetable: more than half a day, so not a connection we count.