Posts from Damage calculator.
Auto-translated
Good topics – neighbors – damage calculator – and enough with the nonsense! – let's equip ourselves with more abacuses and calculate who will deal how much damage in response! Don't be silly – this is a game – you don't need to "beat" it – you need to play it.
+1. I estimate the damage intuitively.

"Это нам идеально подходит!" [Новосибирск, 2013]
"Красавчик! Если только не читер.." [Киев, 2014]
"Это Вам не шутки - нажрался Dust в маршрутке" [Новокузнецк, 2015]
Сам ты фиш (с) :D
Also, thanks to a good guy from the sk2tv chat, support for HP art will be added in the coming days (including collection calculation), which is sometimes needed. Open source rules!
Terrain: neutral to both units
Attacker:
Hero: 0 attack, 0 defence
Army: 3 ancient behemoths under curse spell
Defender:
Hero: 0 attack, 17 defence
Army: 1 marksman
According to formula: 139 damage. Marksman has 20 defence overall. Ancient behemoths reduce marksman's defence by 80% hence marksman's defence equals 4. Using the formula of damage dealt, behemoths should deal 139 damage.
According to calculator: 139 damage
Reality: 144 damage (as if behemoths had 1 more attack or marksman had 1 less defence)
Solution: although it is stated that ancient behemoths reduce defence by 80%, in reality it is ~80,00000119% because of binary representation of number 80 in memory. Hence marksmen's defence: (100%-80,0000019%)*20 ~= 3.99999962. The value is rounded down and interpreted as 3. So ancient behemoths deal 144 damage points to marksman with overall 3 defence.
Similar kind of bug doesn't apply to golems' resistance to magic.
Similar kind of bug doesn't apply to nixes' ability of decreasing enemy's attack.
Here you can find a damage calculator and a guard strength calculator.
Is the thread still active? I can add creatures from Heroes of Might and Magic, as I have the source code.
That would be great!