Instead of iterative solving, use this approximation (valid for 30° PA, Dp=1.1m):
You don't need to start from scratch. Reputable engineering sources offer free or paid templates. Look for these features: din 5480 spline calculator excel