post expire after x days

You’re comparing strings. For dates this will only ever work out if you use a yyyymmdd format or similar.