UX 4060 then FR 572 at Madrid
Valencia → Madrid → Porto
Timetable, Madrid time
21:45UX 4060 from Valencia at the gatealso AM 6859, EY 7520
16:40FR 572 to Porto leaves the gate
18 h 55 apart on the timetable, overnight
FR 572 leaves 18 h 55 after UX 4060 arrives on the timetable: more than half a day, so not a connection we count.