Algorithm for Calculation of Pitch Diameter of Parallel Thread Gauge | Synapse