The period of oscillations of a mass on a spring depends on the mass of the object and the force constant of the spring as indicated in this equation.
Pitfall Avoidance Note: Don't use this expression to solve problems that do not involve a spring.