UA 5310 then UA 785 at San Francisco
Medford → San Francisco → Washington
Timetable, San Francisco time
08:00UA 5310 from Medford at the gatealso NZ 9526
06:15UA 785 to Washington leaves the gatealso AZ 4408, NZ 9160
22 h 15 apart on the timetable, overnight
UA 785 leaves 22 h 15 after UA 5310 arrives on the timetable: more than half a day, so not a connection we count.