Looks OK but put some numbers in and check against my formula by substituting number of teeth for the various diameters.
You must get the same answer.
BTW, your solution, when simplified should be identical to the one I posted on 12/2, 16:59.
Good luck and BTW, don't use this method; in my opinion, it is fraught with pitfalls; use the standard velocity method I outlined earlier.