Your syntax is...not right. If you read what I gave you that you pasted in, "skillId" doesn't mean anything, you need to type in the ID of the skill you're checking the level of.
Additionally, this is game code, just typing the words "level" and "magic attack" doesn't mean anything.
Additionally additionally, you can't use braces in your damage formula - this isn't math, it's code.
Additionally additionally
additionally, your formula currently doesn't take into account any stats from the target defending against the attack, which is almost certainly not what you want.
You should look at and read the example formula provided in the editor, and then read how damage formulae work before making up your own. Here's a good thread:
Please note: A discussion has already been started about different things you can do with these formulas so please direct those comments and question to the appropriate thread. https://forums.rpgmakerweb.com/index.php?threads/rmmv-damage-formula-ideas-and-help.47099/ A link to the list of...
forums.rpgmakerweb.com