It is not possible to set a custom time period when sharing an item/link. It can only be set globally (see screenshot). Please give us the option to decide for each object how long we want to share it.
Currently planned for V14.1
Possible workaround: Set expiry rule for an individual access rule
Currently planned for V14.1
Possible workaround: Set expiry rule for an individual access rule