PU 302 then UX 1047 at Madrid
Lima → Madrid → Rome
Timetable, Madrid time
15:20PU 302 from Lima at the gate
15:00UX 1047 to Rome leaves the gate
23 h 40 apart on the timetable, overnight
UX 1047 leaves 23 h 40 after PU 302 arrives on the timetable: more than half a day, so not a connection we count.