Click here for the answer
All that changes is the exponent. For quarterly compounding it would be
4*n*Log[1+R/4], and for monthly compounding it would be 12*n*Log[1+R/12].
In other words, the exponent is always n times the growth rate. This can be
easily verified using Mathematica.