Welcome @holyemee,
or and and cannot be on the same level, so you would need to put the parts in brackets (…).
Did you check your form with the Online Validator ODK - XLSForm Online v2.x ? This is always recommended during development.
Trying the search function of the forum, can also provide help often, see e.g.
https://community.kobotoolbox.org/t/use-of-if-condition-on-responses-of-multiple-choice-question-for-a-calculate-question/33608/13.
@Kal_Lam : There seems to be no hint in the Help Center articles for this. Might be preferable to add? Maybe include the general precedence hint of XWare, see Restricting a date variable using month-year on XLS - #8 by Xiphware