How to auto calculate fees according to user selections?