I'm trying to find a calculation that will show 14 days in the future from the date the word document is opened, every time. Currently I am using
{QUOTE
{SET Delay 14}
{SET a{=INT((14-{DATE\@M})/12)}}
{SET b{={DATE\@yyyy}+4800-a}}
{SET c{={DATE\@M}+12*a-3}}
{SET d{Date\@d}}
{SET jd{=d+INT((153*c+2)/5)+365*b+INT(b/4)-INT(b/100)+INT(b/400)-32045+Delay}}
{SET e{={INT((4*(jd+32044)+3)/146097)}}
{SET f{=jd+32044-INT(146097*e/4)}}
{SET g{=INT((4*f+3)/1461)}}
{SET h{=f-INT(1461*g/4)}}
{SET i{=INT((5*h+2)/153)}}
{SET dd{=h-INT((153*i+2)/5)+1}}
{SET mm{=i+3-12*INT(i/10)}}
{SET yy{=10*e+g-4800+INT(i/10)}}
"{dd}-{mm}-{yy}"\@" MM/dd/yyyy"}
The problem I'm running into is the date will only be accurate the first time the document is opened, but if I try to run it the next day the date does not update.