@alinephilibert, you could do it as outlined in the image shared below:
In the survey tab of your xlsform:
In the choices tab of your xlsform:
Data entry screen as seen in Enketo:
Reference xlsform:
Aline_issues.xlsx (11.5 KB)
Note: You could use the read_only to block the changes of the result or also use the note question type to display the answer/calculation in a separate response.