Added if statements for combobox

It might work but we need another input field and to add the actual math
for the other two. Read comments for better desc.