It works fine for me, however I think your problem may be this...
when you're defining CapBudget and ExpBudget, are you putting the values in Quotes?
CapBudget = '47';
ExpBudget = '53';
Just define those to variables without the quotes, and you'll be fine.
CapBudget = 47;
ExpBudget = 53;
total = 100