When 9.93 is -100% when weight is 0 then -1% is -9.93/100=-0.0993. If you plot this value on a scale it will look like below:
Code:
1% 2% 3% 4% 5% ..... 100%
0.0993 0.1986 0.2979 0.3972 0.4965 9.93
Let us say the result of your SumOfWeight is 0.4975 then the percentage is calculated on a 0 weight scale as =-int(SumOfWeight/9.93*100) = -5%.
We have added the negative symbol at the begining to make the result as negative because the weight starts from 0,1,2,3,4,5 to 100. The INT() function is applied to round-off the percentage into an integer. If you prefer the value like -5.01007 then don't use INT() Function.
Since the SumOfWeight is always 9.93 or less the calculation can be made the same as above for the weight starting value 19.86 scale also, but make the percentage a positive value.
To find out the Weighted Value of SumOfWeight = SumOfWeight/9.93*100*19.86
The above expression can be shortened, but I left it like that for clarity.