Yesterday eOne brought us Tech Tuesday – Calculating Dates Using Scripts.
The eOne Dynamics GP and CRM Blog: Tech Tuesday – Calculating Dates Using Scripts
Microsoft & the GP EcosystemDevelopment & Integration
Archived post from 2013. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.