The formula can taken through the compounded interest formula:
A= P(1+r/n) to the power of n time t.
P = is the initial amount or the principal
r = interest rate (annually)
t = years or tenor of the deposit
A = total amount of money after the tenor
n = frequency of the compound