EC 1703 then LH 1805 at Madrid
Nice → Madrid → Munich
Timetable, Madrid time
20:40EC 1703 from Nice at the gate
18:35LH 1805 to Munich leaves the gate
21 h 55 apart on the timetable, overnight
LH 1805 leaves 21 h 55 after EC 1703 arrives on the timetable: more than half a day, so not a connection we count.