The retention period of the current and intermediate steps used to be calculated based on the archiving date, with the possibility of being configured to be the document date. Now, some configurations have been made available, such as Document date, Archiving date, or Attribute. That way it is possible to meet, for example, cases that require to calculate the retention period from the end date of a contract, which was informed in an attribute of the document.