Get a number based on what option is selected in a field