[Bug Fix] Calculation Errors

-Fixed error in calculating groups where percentages did not add up to
100%
-Fixed error in rounding down in cases of 1/2 = 49% etc.