formula of a ball mill