You “Set Percent” to actual EXP Value = if EXP = 9999 - so does the Percentage value and obviously it’s not a value you can use as 0-100% as it’s exceeding the max (100%) value
You need just a bit of math here:
Current EXP / Max EXP = % you need
Just make sure you change the Int to Float before you divide