FR 1031 then FR 10 at Dublin
London Gatwick → Dublin → Madrid
Timetable, Dublin time
12:45FR 1031 from London Gatwick at the gate
10:00FR 10 to Madrid leaves the gate
21 h 15 apart on the timetable, overnight
FR 10 leaves 21 h 15 after FR 1031 arrives on the timetable: more than half a day, so not a connection we count.