FR 5994 then FR 2082 at Madrid
London Stansted → Madrid → Birmingham (UK)
Timetable, Madrid time
21:05FR 5994 from London Stansted at the gate
21:00FR 2082 to Birmingham (UK) leaves the gate
23 h 55 apart on the timetable, overnight
FR 2082 leaves 23 h 55 after FR 5994 arrives on the timetable: more than half a day, so not a connection we count.