Percentage of a variable

I know there must be an incredibly easy solution to this, but somehow I can't figure it out or manage to google it.

I have a "salary" variable. Set to 10.

I made a "tax" variable and I want to set it to x% of "salary". How do I do that? The control variable doesn't seem to have such option.
Well, I'm not the best in math...
Set the variable value to script and assuming the salary variable number is 1 and the percentual variable number is 2, add the following code:

Code:
$gameVariables.value(1) * $gameVariables.value(2) / 100
I knew there's a one-step way to do it. I actually figured out another way in the meantime, but it was clearly a workaround:

Control Variables: #0003 Income = Salary
Control Variables: #0003 Income /=5

for a 20% tax

works, but yours is way more elegant. Thank you!
Glad to help 😀

Original thread: https://forums.rpgmakerweb.com/threads/percentage-of-a-variable.80735/