Try changing this:
((AddCountRight) / (TotalAddProb) *100)
To this:
(AddCountRight * 100.0 / TotalAddProb)
In your version, you are performing integer division, so the result gets truncated to 0 then multiplied by 100 (the result of which is 0). In my version, I convert the integer to a floating point number, then perform the rest of the math (which avoids the integer division).