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.