Kobotoolbox autocalculate

Hi guys, I'm trying to use the calculate function to autocalculate total score based on previous questions that are likert scale e.g. Is your sleep disturbed? Options: Never=0, Sometimes=1,Often=2, Always=3.There are 25 such questions and based on the answers a total score is calculated.I was able to do this for another questionnaire which only had Yes/No response but having trouble with the four point calculation code. Any help would be appreciated!

do you get a valid result when you have answered all 25 questions?

Yes, all 25 are marked mandatory.

Um, do you mean "Yes" you do get the expected (valid) result when all 25 are answered, but if fewer than 25 are answered then the result is somehow 'bad'?

Perhaps post what your calculation looks like.