The algorithm is described extensively in the VTL spec part 1 in the **The Attribute Components** section line 1307.