On index formulas for manifolds with metric horns