UX 176 then FR 2017 at Madrid
Lima → Madrid → Lanzarote
Timetable, Madrid time
05:10UX 176 from Lima at the gate
17:35FR 2017 to Lanzarote leaves the gate
12 h 25 apart on the timetable
FR 2017 leaves 12 h 25 after UX 176 arrives on the timetable: more than half a day, so not a connection we count.