not so much math as knowing what the balance factor is. You also will need a fixture to set the crank in that is friction free (as much as can be) I have a fixture with knife edge ballbearing rollers. you also need to make a bob weight one you calculate the correct amount of weight. I gave up on this when I realized the best way to reduce vibration of a single cylinder engine is to use the lightest reciprocating weight possible. Get the lightest pin, piston. You also need to weight the small half of the connecting rod and the big half. Formula is 100% of bigend * (balance factor*(small rod end, piston, piston pin, rings, circlips)) The balance factor moves the primary imbalance around the horizontal and vertical planes. There is no way to get a perfect balance on a single cylinder engine and the heavier the reciprocating weight the greater the primary imbalance.