Calculating APY from N percent earned over X days

29 Views Asked by At

What equation could I use to calculate the APY where percent interest and number of days are variable?

For instance, suppose I invested $100 and earned 10% interest in 5 days.