this is a quick&easy formula to calculate how much dmg will a unit do to another unit:
the formula:
dmg done = 15%*A/B
Attackdmg = (UnitprimaryORsecondaryDMG/unitNP)
-HP = Unithitpoints/UnitNP