I have a two-column table. One has rows with dates, in this format: 2022-01-24 for example. The other has a number of days (ex: 3).
I would like to add another column with for each row a date obtained by subtracting the date in the first column and the number of days of the second one.
(for example, 2022-01-24 - 3 = 2022-01-21 is the date I want in my new column)
I have been trying to do simple calculations (and change the format of the date) but it does not work well.