Anubhav24
Mega Sage

Hi @Shir Sharvit ,

Before doing the addition can you convert the dates using getNumericValue() functions it converts the date to milliseconds and then you can simply do the comparison and once you have the value of the date based on your logic you can set it back using setNumericValue().

 

Please mark helpful/correct if my response helped you.