Adapting the pokemon damage calculation to MV

Can someone help me? I'm trying to addapt or make a simplified version of the pokémon damage formula, but I'm terrible at maths so I can't do it properly.

The pokémon damage formula looks like the one in the attachment.
And you can get an explanation of how it works here: https://bulbapedia.bulbagarden.net/wiki/Damage

If it's too much work, I think I only need to take into account variables like ability power, the attack of the user and defense of the target. Nothing more. Is there a way to remove from the formula the other things and get a calculation that works similarly to the one in pokémon?

Thanks for reading!
(2 * a.level / 5 + 2) * [power value is inherent to the move, so just put the appropriate number you want for that here] * a.atk / b.def / 50 + 2

For magic attacks, swap out a.atk for a.mat and b.def for b.mdf.
(2 * a.level / 5 + 2) * [power value is inherent to the move, so just put the appropriate number you want for that here] * a.atk / b.def / 50 + 2

For magic attacks, swap out a.atk for a.mat and b.def for b.mdf.

Seems to work perfectly fine! You're awesome. Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/adapting-the-pokemon-damage-calculation-to-mv.119189/