Time bound doc sharing

It would be nice to have the ability to specify a time period for which a documents can be shared with a user or in the case of link sharing.
e.g 1 year, x months, x weeks, x days

After the set access period lapses the sharing will automatically be disabled for the selected user or sharing link disabled