The torsion spring is a spring that works by torsion or twisting.
t = 2pi sqrt( l I0 / kt)
where kt = Torsional Rigidity [Nm2], I0 = Moment of Inertia of Bob [kgm2], l = Length of the spring[m]pi = Constant(3.14), t = Period [s].