How do you want def to influence it?
in the previous post we can say we calculated the "damage points" do you want the value to increase further with the hero's defense or do you mean the substraction of the value by using the enmies def stat?
In the end both are variables i think you should decide for yourself how it should impact your damage.
You should think of an ballance you want to maintain.
Example: the default damage formula of rpg maker is (if i remember correctly) a.atk*4-b.def*2 this means that for that skill every stat point in atk is worth 4 "damage points" and for the enemy every point in def is worth 2 "defense points"
This means that if both hero and enemy can only use the same skill like I can see in the video, that atk is way more valuable.
If the stat values remain small it isn't really notticeable but it will later on "if" the stat values will rise much at all.
So you can do 2 things
1: think about what kind of game you want to create and how it should be represented through combat and create your "balance" Or
2:Try to explain as clear as possible what you want and what your vision of your game is.(We can only guess so much, cause i could also have given you this value = a.hp+a.atk+a.def-b.def; and it would still conform to your criteria.)
However my personal opinion is that you should spend some time thinking about it yourself some more.
Edit: Now we have something more to work with.
Well asuming that every HP is a single man with 4 ATK a relativly easy solution would be this