Calculates the Effective Annual Rate (EAR) from a nominal interest rate.
The nominal interest rate per year (e.g., 0.12 for 12%).
The number of compounding periods per year (e.g., 12 for monthly).
The effective annual rate as a decimal.
Calculates the Effective Annual Rate (EAR) from a nominal interest rate.