Is expiration date function working?