I don't think you are giving an increased score for items in which a gem socket has been added and also factoring in the bonus the new gem provides. It appears you have a set requirement for what you want in an item as far as gems go but I don't see it getting added value in your calculator.
Either give it an enchant score, or increase the item value when it's got an extra socket from BS (specifically talking about gloves and wrist).