Warlord's Armguards

Warlord’s Armguards (Rare)

Effect is “Add 10% Critical Damage for each big gem on the board

Is the calculation made before the attack or afterwards? I.e. if you use some of the gems during the attack, does that reduce the % damage?

Cheers.