Calculation For Velocity