Change 'if' condition to define 'expired' status based on date.