FR 3008 then FR 9472 at Madrid
Milan → Madrid → Pisa
Timetable, Madrid time
19:50FR 3008 from Milan at the gate
13:00FR 9472 to Pisa leaves the gate
17 h 10 apart on the timetable, overnight
FR 9472 leaves 17 h 10 after FR 3008 arrives on the timetable: more than half a day, so not a connection we count.