It can be applied into list, document library, content type or site.
however there is no way to set previous date such as [created – 7].
it only allows + operation and is not allowed for calculated field.
Maybe this can be utilized some daily workflow job instead of custom event receiver if we just create new SharePoint management list. need more idea for this.
create custom retention formular :