Hello Hardik! Are you talking about a pendulum? A pendulum is never exactly shm, but it is very nearly so if we assume θ = sinθ. Since sinθ = θ - θ^{3}/6 + … that means the error will be a function of θ^{2}/6 … to find out what function, just plough through the proof.