go calculation