Cannabis (marijuana) use disorder is a mental health condition in which you have a problematic pattern of cannabis/marijuana use that causes distress and/or impairs your life.
Safe, medical detoxification to help patients through the symptoms of withdrawal can last anywhere from a few days to weeks (typically averaging about 7+ days).