Duration of the bond index is computed as?