Under compound interest, each period's interest is added to the principal, and the next period's interest is worked out on that larger sum. The money grows by the same factor every period instead of the same amount, so the formula uses a power.
A = P × (1 + r/100)ⁿ, and CI = A − P
Here r is the rate per compounding period and n is the number of periods. For annual compounding those are simply the yearly rate and the number of years. The key to every variation below is getting r and n to match the compounding period.
Worked example 1: annual compounding
₹12,000 at 10% for 2 years. A = 12,000 × 1.1² = ₹14,520, so CI = ₹2,520.
Worked example 2: finding the principal
A sum amounts to ₹13,310 in 3 years at 10% compounded annually. P = 13,310 ÷ 1.1³ = 13,310 ÷ 1.331 = ₹10,000.