FR 573 then UX 25 at Madrid
Porto → Madrid → Santa Cruz
Timetable, Madrid time
14:35FR 573 from Porto at the gate
03:05UX 25 to Santa Cruz leaves the gate
12 h 30 apart on the timetable, overnight
UX 25 leaves 12 h 30 after FR 573 arrives on the timetable: more than half a day, so not a connection we count.