Calculate Annual Percentage Yield (APY) from interest rate and compounding frequency. Compare savings accounts and investments.