The cookie's expiration date is decided by the brand when the affiliate program is initially set up, so it can vary between vertical and retailer. However, the network standard for this is usually 30 days, as it gives the consumer enough time to make their purchase decision.
It’s important to note that any web user is entitled to clear their browser cookies at any time they wish, which would result in the tracking of the affiliate and any potential sale to be cleared too.