How to keep your calm even in the worst and trying situation?

How to keep my temper at bay most of the time? I honestly don’t know the answer,can someone tell me? I could google it, but i am a bit lazy to do that now. Maybe later…