Let's see if this worked to upload the MS Excel spreadsheet.
It's a safe file.
Play with the numbers in the blue boxes
Did not check this one as I have one or two myself. But I did modify one to also include DD math. There you have both the big gears that differ between M6/7/8/10 but also the gear reduction in the planetary gear set.
Think I also added a set-back or rail extension calc where you could put in driver and rear idler diameter.
I'll dig around if anyone wants it.
RS