FR 499 then W4 7991 at Madrid
London Stansted → Madrid → Pisa
Timetable, Madrid time
16:00FR 499 from London Stansted at the gate
13:55W4 7991 to Pisa leaves the gate
21 h 55 apart on the timetable, overnight
W4 7991 leaves 21 h 55 after FR 499 arrives on the timetable: more than half a day, so not a connection we count.