How do you say I needed to stay calm in French?

j'avais besoin de rester calme