$ 0 0 Hi On below line i get above error . PeriodLength is DateFormula SDate := CALCDATE(-PeriodLength, "Posting Date"); Thanks