Calculation of speed and mass