Who needs app's when you have calculator

Pitch circle diameter = MOD * No of teeth

therefore

Spacing = MOD/2 (N1 + N2) where N1 and N2 are the number of teeth on each gear