With regard to calculating the Diameters of stock for screwcutting.
Whitworth, BA, Unified and Metric threads specify a reduction of stock diameter (proportional to thread pitch) to ensure that freedom from root / crest interference.
At Rolls Royce, the truncation for Unified threads was given as 0.108253P for a screw and 0.144338P, for a nut, where P is the pitch.
Since Metric threads are also 60 degree form, I would expect the same factors to apply.
Whitworth (55 degree) form threads have rounded crests for the same reason.
For these the truncated diameter of the screw is given as Nominal Diameter – (0.1478/tpi)
For the nut the truncated diameter is given as Nominal Diameter + (1/tpi)
The radius of the rounding is given as 0.3137329P
The truncation is then 0.160083P
For 47.5 degree BA threads, also with rounded crests, Radius = 2 x (P/11) the truncation is given as 0.27P resulting in the truncated diameter of the screw being Nominal Diameter – (0.2172/tpi), and the nut Nominal Diameter – (0.9/tpi))
HTH
Howard