Get a first approximation at a correct damage formula, including finding a serious math error in the example I was using