When someone clicks your link, they’re tagged as your referral for 30 days. If they order in that time, you earn commission. If they click another affiliate’s link afterwards, the most recent link gets the credit.