Formula not working

So I am trying to make a skill that does more damage the more TP you have. Currently the formula is this:
tp * a.mat / 3 - b.mdf
But every time I use it, it deals 0 damage. Does anyone know what I am doing wrong?
I think that should be a.tp. Using TP in the damage formula follows the same rules as any basic parameter. You might also wanna use some parentheses for neatness.
Dude i've been trying for so long to fix it and i forgot to add a single letter
it worked
Sometimes we miss the smallest things. Happy I could help.

Original thread: https://forums.rpgmakerweb.com/threads/formula-not-working.162681/