Simplify attackunits equation