FR 2437 then LP 2485 at Madrid
Rome → Madrid → Lima
Timetable, Madrid time
09:00FR 2437 from Rome at the gate
00:40LP 2485 to Lima leaves the gate
15 h 40 apart on the timetable, overnight
LP 2485 leaves 15 h 40 after FR 2437 arrives on the timetable: more than half a day, so not a connection we count.