Server error for Calculation

I found the Server error (500) Something went wrong when trying to process your request.
My question was
7. Are you agreed with this or? Options for the question are Yes, Partially and No. Finally I type “if(${_7_Are_you_agreed_with_this_or} = ‘YES’, 5, if(${_7_Are_you_agreed_with_this_or} = ‘Partially’, 2, 0))” in the calculator section and on Note #Score is: ${calculation_001}
So, what is my error? Please help me.

Welcome to the community, @Ase! Have you validated your XLSForm through the online validator? The online validator should help you identify syntax issues if any present in your XLSForm that are affecting the deployment of your form. If you are still unable to fix, feel free to share the relevant part of your XLSForm with the community. The community should be able to help you out.