H2 5595 then JA 7027 at Lima
Miami → Lima → Cusco
Timetable, Lima time
15:40H2 5595 from Miami at the gate
10:40JA 7027 to Cusco leaves the gate
19 h apart on the timetable, overnight
JA 7027 leaves 19 h after H2 5595 arrives on the timetable: more than half a day, so not a connection we count.