Add function to calculate the Equivalent Width