How do I do num x (num ^ num) - (num x num)?

okay I’m trying to do a formula but ue4 won’t let me
to be exact this is the formula: 500 x (level ^ 2) - (500 x level)
(it is the D&D level formula, I’m using it as a test)
but I can’t figure out how to do it, I tried using nodes, didn’t work and math expression gives me this: (500 x (Level ^ 2)) - (500 x Level)

in blueprint the formula would look like the below picture. The make literal floats aren’t required but it makes it more readable. Not sure what kind of issues you were running into but its pretty straight forward.