Anyone has code to make an application expire after 30days?

curious of how its done

Thanks for your help
Brian