Calculate damage.