sting calculation