AA 8676 then FR 572 at Madrid
Bilbao → Madrid → Porto
Timetable, Madrid time
14:45AA 8676 from Bilbao at the gate
09:15FR 572 to Porto leaves the gate
18 h 30 apart on the timetable, overnight
FR 572 leaves 18 h 30 after AA 8676 arrives on the timetable: more than half a day, so not a connection we count.