I had a good idea on how to include the socket bonus.
RS = Red Socket Weight
BS = Blue
YS = Yellow
So, the worth of the sockets + bonus:
MAX(Correct Color Sockets + Socket Bonus , MAX(RS,BS,YS) * number sockets).
Anyways, glad to hear you are adding sockets!
Thanks.