The tool number selection table 286 includes items such as the operations performed for manufacturing the part, and the number of tools set on the cam shaft automatic lathe when each operation is performed. [0293] As shown in FIG. 32, the edge processing time selection table 287 is a table used for determining the edge processing time in equation 2.