time calculation on grinding machine pdf