Calculation for negated health is damage*(armour/100) so for example 200 damage with 20% is 200*(20/100) = 40. That gives you the amount you are protecting with the armour, then you subtract that from original damage amount to get damage done to the player, so the total calculation you need for damage done to the player is
damage-(damage*(armour/100))