arch_index function

Calculate Arch Index.