Nominal rate and compounding
APY = (1 + r/n)^n − 1, where r is the nominal annual rate and n is the number of compounding periods per year (365 daily, 12 monthly, 4 quarterly, 1 yearly). Optional principal and years give an ending amount: principal × (1 + r/n)^(n × years).
Not investment, deposit, or financial advice. Real products may use a different day count or charge fees. The institution's disclosure governs.
Result
APY—
Ending amount—