UX 176 then FR 404 at Madrid
Lima → Madrid → Palma de Mallorca
Timetable, Madrid time
05:10UX 176 from Lima at the gate
21:05FR 404 to Palma de Mallorca leaves the gate
15 h 55 apart on the timetable
FR 404 leaves 15 h 55 after UX 176 arrives on the timetable: more than half a day, so not a connection we count.