fixed code for industry conditionals calculator