The calculation method (straight teeth) can refer to the involute spline standard GB/T3478.6, and the principle of the calculation formula is the same.
The span calculation method of helical cylindrical gear and straight cylindrical gear is "basically the same", and some of them need end face parameters.
The formula is too complicated to write here. Please understand.