It depends on the situation and on the type of guy he is as to how long he will stay mad at you. There is no definitive answer that applies to any situation. Give him some time and space so that he can figure out his thoughts and he will likely come and talk to you. If he stays mad for an unreasonable length of time then you may need to consider whether he is right for you.