Wrote a fairly accurate damage calculator.