On the computation of the Benjamin-Feir Index