You shouldn’t need the parentheses, but you can get them to appear by enabling the experimental parentheses feature. I don’t know why you can’t get the minus operator, but it appears as an option in the dropdown as you build the expression… and yes, the expression should take gap years into consideration. If it’s not working for you, consider sharing some screenshots of what you are doing.