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:
![abureaux_0-1706202353268.png abureaux_0-1706202353268.png](https://community.esri.com/t5/image/serverpage/image-id/92817iD94041B87B50D3D6/image-size/medium?v=v2&px=400)
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:
![abureaux_1-1706202396586.png abureaux_1-1706202396586.png](https://community.esri.com/t5/image/serverpage/image-id/92818i42F6571A5439C5BC/image-size/medium?v=v2&px=400)
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 ![abureaux_9-1706203457586.png abureaux_9-1706203457586.png](https://community.esri.com/t5/image/serverpage/image-id/92830iA25F6B3458AD5123/image-size/medium?v=v2&px=400)
2 ![abureaux_8-1706203451117.png abureaux_8-1706203451117.png](https://community.esri.com/t5/image/serverpage/image-id/92829i090BD88C6D499DD2/image-size/medium?v=v2&px=400)
3 ![abureaux_7-1706203443034.png abureaux_7-1706203443034.png](https://community.esri.com/t5/image/serverpage/image-id/92828i5F9510976C6C55E6/image-size/medium?v=v2&px=400)
4 ![abureaux_10-1706203477964.png abureaux_10-1706203477964.png](https://community.esri.com/t5/image/serverpage/image-id/92832i300BEAF892D44E68/image-size/medium?v=v2&px=400)
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 ![abureaux_12-1706203549483.png abureaux_12-1706203549483.png](https://community.esri.com/t5/image/serverpage/image-id/92836i06A09758CDD2C5A8/image-size/medium?v=v2&px=400)