FR 9673 then UX 5435 at Madrid
Rome → Madrid → Málaga
Timetable, Madrid time
23:30FR 9673 from Rome at the gate
19:25UX 5435 to Málaga leaves the gate
19 h 55 apart on the timetable, overnight
UX 5435 leaves 19 h 55 after FR 9673 arrives on the timetable: more than half a day, so not a connection we count.