determine period