The minus sign (-) applies to internal gearing.
Other parameters are calculated as in Basic geometric calculation.