Maybe you could do the same as outlined in the image below:
In the survey tab of your xlsform:
In the choices tab of your xlsform:
Data entry screen as seen in Enketo:
Reference xlsform:
Calculation.xlsx (11.9 KB)
If you wish to control the decimal digit of your calculated value, you could do the same as outlined in the post discussed previously: