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