how to calculate the minimum time period of bar penduldum?