formulae in grinding machine operation