This can easily be done by clicking on the three dots in the right corner beside the name of the file/folder you want to set an expiration date for. Choose "Delete files at". Set an expiration date. Click save.