EC 1703 then FR 8239 at Madrid
Nice → Madrid → Porto
Timetable, Madrid time
20:40EC 1703 from Nice at the gate
17:05FR 8239 to Porto leaves the gate
20 h 25 apart on the timetable, overnight
FR 8239 leaves 20 h 25 after EC 1703 arrives on the timetable: more than half a day, so not a connection we count.