This mostly depends on the severity of the offence. Sometimes, a short ban of a few days is enough to remind someone that their behaviour is inappropriate. If someone needs to be reminded again, we may ban the account for longer (e.g. 7 days, or even 31 days).
In the case of extreme offenses such as cheating, systematic account theft or illegal activity such as fraud, we will permanently ban an account.