Approximate logic for Excel: You need to calculate the pressure angle at the center of the ball ($\alpha_M$).
You can often find templates for these calculators on engineering forums, GitHub repositories, or specialized CAD resource platforms like GrabCAD . DIN 5480 SPLINE CALCULATOR EXCEL din 5480 spline calculator excel