Damage formula not working for enemies

This is the basic damage formula for a single attack (slash), the player can use it but enemies seem to always deal no damage.

(((((((2 * a.level ) + 1) / 3) + 2) * (20) * ( a.atk / b.def )) / (2)) + 2)

I know something is wrong with the formula and not anything else because setting it to an integer works fine. I know rpg maker can be finicky with the formatting of formulas, but I think everything is correct here. Attached are more details of the move.
Could it be that a.level? Enemies don't have levels, unless you have some kind of plugin.
so i can't use level as a damage variable without plugins? that seems odd.
edit!

Oh! I just Read that enemy deals no damage, then YES! (a.level) wont work if enemy has skill with that method in skill formula because by default MV has no param "level" for enemies. To fix it install Yanfly's Enemy Levels plugin.
You could replace a.level for users that don't have one, but you'd need to know what value you want to replace it with, e.g.
Code:
2 + ( ((2 * (a.level || 1) + 1) / 3 + 2) * 20 * a.atk / b.def ) / 2
I think this'll use 1 instead of a.level in cases that the skill user has no level value. 🙂

Otherwise, as mentioned, there are plenty of plugins out there to give enemies levels, e.g. Himeworks Enemy Levels:
http://himeworks.com/2015/11/enemy-levels-mv/
You could replace a.level for users that don't have one
Exactly that. Depending on what you're looking for, you might not need any plugin.
I'm using levels in my damage formulas, for enemies I'm using a Level variable that I initialize in troop events instead of a.level.
thanks guys! i didn't know there was a function to give a value to nulls.

Original thread: https://forums.rpgmakerweb.com/threads/damage-formula-not-working-for-enemies.115172/