Script for check expiration