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