Let time be n months.
By formula,
I = P×2×12n(n+1)×100r
Substituting values we get :
⇒1040=2000×24n(n+1)×1008⇒1040=2000×300n(n+1)⇒n(n+1)=20001040×300⇒n(n+1)=156⇒n2+n−156=0⇒n2+13n−12n−156=0⇒n(n+13)−12(n+13)=0⇒(n−12)(n+13)=0⇒n−12=0 or n+13=0⇒n=12 or n=−13.
Since, no. of months cannot be negative.
∴ n = 12.
Hence, total time for which the account was held = 12 months.