IB 518 then FR 572 at Madrid
Santiago de Compostela → Madrid → Porto
Timetable, Madrid time
10:25IB 518 from Santiago de Compostela at the gate
22:40FR 572 to Porto leaves the gate
12 h 15 apart on the timetable
FR 572 leaves 12 h 15 after IB 518 arrives on the timetable: more than half a day, so not a connection we count.