If you use miles as a unit of length than - the distance from Beverly to Hayward is zero miles.
The road trip out of Beverly to Hayward will take approximately if you drive with average speed and the absence of accidents and traffic jams
Watch distance between Beverly and Hayward
Flight from Beverly to Hayward