Socks calculations