Calculation of date of a perticular week day depending upon data entry's date

Hello folks,

I am a beginner to XLSform creation and deployment. So, pardon me if question is too basic.

I would like to auto calculate and disply the date of the last "Tuesday" during the data entry based on the date of data entry.

I have tried google to find any answer but could not locate any helpful resource to achieve the desired result.

I understand that, I can do calculations using "Calculation" question type. But is it possible to achieve the above aim using the calculation function in XLSform. If yes, how can I achieve it?


The docs have a section on the available date and time operators:
I'm not sure what you want to do is possible.