add active acc periode function