I'm having trouble figuring out when to calculate EAR or the effective monthly rate, effective daily rate etc. How do I know when to calculate which one? Also I don't quite understand the formula. How do I know how many compounding periods I need to divide the interest rate by and then raise it to the same exponent in the equation

EAR = (1 + i/n)^n - 1