U2 2047 then AV 6506 at Madrid
Manchester → Madrid → Munich
Timetable, Madrid time
20:35U2 2047 from Manchester at the gate
18:35AV 6506 to Munich leaves the gate
22 h apart on the timetable, overnight
AV 6506 leaves 22 h after U2 2047 arrives on the timetable: more than half a day, so not a connection we count.