FR 573 then UX 5435 at Madrid
Porto → Madrid → Málaga
Timetable, Madrid time
22:05FR 573 from Porto at the gate
19:25UX 5435 to Málaga leaves the gate
21 h 20 apart on the timetable, overnight
UX 5435 leaves 21 h 20 after FR 573 arrives on the timetable: more than half a day, so not a connection we count.