Thanks Bogdantc
The form has the same dateformat as my VM,and I'm using English datetime format. I tried to get the date that I use on the calculations seperately and it does return the right that and the number of days that I adding are right as well, the only problem is the formula when is published but if I preview the formula works ...