Ban length depends on offense severity, frequency, and account history. Microsoft doesn't publish exact durations, but community reports show a clear pattern.
Visit enforcement.xbox.com to review case details and submit a case review (limited eligibility). Most bans are final.
Avoid violations entirely. The risk isn't worth it.