Many gear manufacturers provide Excel-based calculation sheets to ensure their parts fit your design.
Most Excel-based spline calculators are distributed in one of two formats: din 5480 spline calculator excel install