FR 573 then UX 137 at Madrid
Porto → Madrid → Quito
Timetable, Madrid time
13:30FR 573 from Porto at the gate
01:45UX 137 to Quito leaves the gate
12 h 15 apart on the timetable, overnight
UX 137 leaves 12 h 15 after FR 573 arrives on the timetable: more than half a day, so not a connection we count.