Formulas for gear calculation - internal gears