FR 189 then FR 5462 at Madrid
Edinburgh → Madrid → Brussels Charleroi
Timetable, Madrid time
18:35FR 189 from Edinburgh at the gate
14:45FR 5462 to Brussels Charleroi leaves the gate
20 h 10 apart on the timetable, overnight
FR 5462 leaves 20 h 10 after FR 189 arrives on the timetable: more than half a day, so not a connection we count.