APR (Annual Percentage Rate) is the annualized gross interest rate. That is, the estimated rewards you can earn.
The APY (Annual Percentage Yield) corresponds to the annualized gross interest percentage, together with interest previously earned at defined intervals. APY therefore takes compound interest into account.
Here's how to calculate APY: