FR 5316 then LA 1657 at Madrid
Rome → Madrid → Amsterdam
Timetable, Madrid time
23:40FR 5316 from Rome at the gate
19:40LA 1657 to Amsterdam leaves the gate
20 h apart on the timetable, overnight
LA 1657 leaves 20 h after FR 5316 arrives on the timetable: more than half a day, so not a connection we count.