change expire date to duration