PU 302 then AV 6518 at Madrid
Lima → Madrid → Frankfurt am Main
Timetable, Madrid time
15:20PU 302 from Lima at the gate
13:20AV 6518 to Frankfurt am Main leaves the gate
22 h apart on the timetable, overnight
AV 6518 leaves 22 h after PU 302 arrives on the timetable: more than half a day, so not a connection we count.