You say you are developing in InfoPath 2007. I am thinking maybe you might have on SharePoint as default InfoPath 2003 and we all know that AddDays is available only in 2007. Are you saving it as 2003 compatible?
If the above is not valid either, could you please post a template ? Maybe the solution would be more evident having the template to test ...