The formula T = 2π√(L/g) is only applicable under the small angle approximation for harmonic motion. For non-harmonic pendulums starting from larger angles, calculating gravity g requires dealing with elliptic integrals. By measuring the amplitude (θ0) and the length (L), one can compute the period T using the appropriate elliptic integral, which allows for the determination of g. This method is supported by existing literature and can yield accurate results. Thus, while the simple formula is not valid for larger angles, alternative approaches can effectively calculate gravitational acceleration.