There is no fixed duration—bans are case-by-case based on severity, history, and enforcement discretion.
Read the Xbox Community Standards. Mute/block/report toxic players instead of retaliating. Don't use unauthorized hardware/software.