Flight International Airport departs from San Francisco International Airport at 18:15 and arrives at Madrid Adolfo Suárez Madrid–Barajas Airport at 14:25.
The flighttime is about 11h 10m. The distance travelled ("as the bird flies"): 13205 Km. So the average speed is roughly 1183 Km.
There is an 9 hour time difference between San Francisco and Madrid