In your anger, do not sin. That is the command. It is simple, and it always applies. In no case, is it decreed that you should get angry as a way of solving the problem. And if you do, seek forgiveness and repent.
Anger appears to have a cumulative dimension.
Don't let it build up. It should be dealt with immediately and promptly. If you do not, it will likely build up and be even compounded. We must attend to it promptly and deal with it, even if a late night visit is in order. Don't minimize wrath, or think it to be a small sin.