FR 835 then FR 4545 at Barcelona
Vilnius → Barcelona → Porto
Timetable, Barcelona time
10:30FR 835 from Vilnius at the gate
10:20FR 4545 to Porto leaves the gate
23 h 50 apart on the timetable, overnight
FR 4545 leaves 23 h 50 after FR 835 arrives on the timetable: more than half a day, so not a connection we count.