Hello Community i hope you're having a good day
I have a problem i need to validate some dates in a formula but when i run the workflow it only takes the last formula and pout the output that is incorrect could you please tell me what im doing wrong

When i run the workflow when the date is in 202353 is putting -199 instead of 1
Thank you for all your help in advance