estimate the machining time of grinding machine