There's nothing simple about gear design, especially once you get more complicated than a basic spur gear.

Best option would be to find somebody with a copy of gearotic who's willing to produce the code you need, or just buy a couple ready made gears.