Create or delete a closed period