Work time in CNC machine