changed the way the expiration is calculated on editing a product