E9 866 then FR 5482 at Madrid
Santa Clara → Madrid → Porto
Timetable, Madrid time
01:40E9 866 from Santa Clara at the gate
22:15FR 5482 to Porto leaves the gate
20 h 35 apart on the timetable
FR 5482 leaves 20 h 35 after E9 866 arrives on the timetable: more than half a day, so not a connection we count.