The equations for rolling contact are not that difficult, the real messiness is in calculating the teeth profiles for gearing.