Velocity is a function of distance and time variables. To calculate velocity, just divide the distance by the time needed to reach that distance. For example: it takes 2 hours to travel 30 miles, then your velocity is 30miles / 2 hours = 15 miles/hour.