How can I perform calculations with dropdown fields