formula for calculating speed rpm in metric