The effective rate is calculated in the following way, where "r" is the effective annual rate, "i" the nominal rate, and "n" the number of compounding periods per year (for example, 12 for monthly compounding):