formula for calculating the critical speed of a ball