FR 2437 then FR 7071 at Madrid
Rome → Madrid → Gdansk
Timetable, Madrid time
09:00FR 2437 from Rome at the gate
21:35FR 7071 to Gdansk leaves the gate
12 h 35 apart on the timetable
FR 7071 leaves 12 h 35 after FR 2437 arrives on the timetable: more than half a day, so not a connection we count.