Formulas for gear calculation - external gears