UX 1515 then LH 1786 at Munich
Madrid → Munich → Faro
Timetable, Munich time
09:45UX 1515 from Madrid at the gate
09:40LH 1786 to Faro leaves the gate
23 h 55 apart on the timetable, overnight
LH 1786 leaves 23 h 55 after UX 1515 arrives on the timetable: more than half a day, so not a connection we count.