Custom EXP formula

Hello, I'm using http://yanfly.moe/2016/03/04/yep-78-special-param-formula-rpg-maker-mv/


I'm trying to do a custom exp formula basead on the level of the char and a value of a variable. Each level above the value of a variable, the char gets -10% exp.


My code is:


(base + plus) * rate + flat - (Math.ceil(user.level - $gameVariables.value(1), 0) * 0.10)




Yet no matter what I do, I aways get 70%. I'm using Math.ceil to get the hights value (diff or 0) and multiply it for 0.10 (aka 10%).


I'm doing something wrong?

Original thread: https://forums.rpgmakerweb.com/threads/custom-exp-formula.58092/