define the effective rate of interest
Calculate the effective interest rate per period given the nominal interest rate per period and the number of compounding intervals per period.