Help with date (identify and count the days)

I tried to do this, but I am not sure what if condition I can put

I cannot do it manually as I have about 100 pdf files