pls what is the formula for calculating period given gravity, mass and length of the material

As in a pendulum?

period= 2PI*sqrt(length/g)