Your template was rather outdated, so the first thing I did was update it to the most recent version. Normally, you can do that with Tools > Update XLSForm template, but I had to do it manually for this one.
Since the template was so old, I next ran Tools > Analyze survey, but still got an error.
After some trial and error, I realized that there were invisible characters in some cells of the first few rows of the document:
After removing those, the tool ran successfully. It was while I was searching for these invisible characters that I also realized that you had some malformed content. E.g., this select_one is missing an underscore:
Most of the content in the analysis is minor, but one thing of note is that list_material_categories had duplicate choice names. This should be corrected.
I have attached the update XLSX. If you are still using an older version of Connect, I would suggest you update that as well. Use the Microsoft Store version as it auto-updates.
With that out of the way, I had a look for the calculates. I am assuming you are referring to lines 42-47 and 63-76. I took several photos, and everything seemed to work well:
1
2
3
4
I did make one addition to your document: sample_date_calc. If you reference a date field, you will get the UNIX time rather than human time (feel free to change the format to whatever suits you best):
vs