How to setup 2 different calculation functions with a drop down menu or 2 radio buttons

I would like to create a list drop down with Male and Female. Which I figured out how to do but what I dont know is if they chose male in the drop down that it calls calculation function and if they chose female it uses a different calculation formula.