Calculate formula before cost is used (Read Description)

I know something similar to this has been asked before but my problem is slightly different and
I know next to nothing about javascript, so I'm asking here for help.

Most of the spells in my game will use the user's magic attack or magic defense stats as well
as their remaining MP minus the target's magic defense to calculate the damage done to the target(s).
For the cost, I am currently using the <MP Cost: x%> notetag.
Since I'm using "a.mp" in the formulas, I don't want MV to use the skill's cost before calculating the formula.

I am using Yanfly's Skill Core plugin and I know I can use the Lunatic Mode notetags that comes with the plugin
to remedy to my problem but I'm uncertain of which notetag I should use and what to write in that notetag.

It would be a great help if someone could help me! 🙂
You can try this formula, idk if writing it in MV would be the same, but
Code:
a.mp + (a.mmp * 0.25)
0.25 is assuming your skill cost is 25% of your max MP. You just simulate back your original current MP in formula
Oooh! Why didn't I think of that!?? Thank you so much, TheoAllen! 😀

Original thread: https://forums.rpgmakerweb.com/threads/calculate-formula-before-cost-is-used-read-description.89936/