find the formula in computing velocity