AA 917 then LA 2232 at Lima
Miami → Lima → Cusco
Timetable, Lima time
23:25AA 917 from Miami at the gate
14:15LA 2232 to Cusco leaves the gate
14 h 50 apart on the timetable, overnight
LA 2232 leaves 14 h 50 after AA 917 arrives on the timetable: more than half a day, so not a connection we count.