Which two elements are used to calculate the security index?