Using your cell contents, namely, "starting amount in B3, interest rate in C2 and number of days in D2", you are using:
=B3*(1+(C2/365.25))^D2
The above formula assumes you are using the yearly rate of interest expressed in percent.
The formula I would use is:
=B3*(1+C2/365)^D2
because the financial institutions are very exacting in all their calculations, and 365 is the number of days in the year to use, at least on non-leap-year years.
I use, instead of D2, the actual dates. For instance, if rhe starting period is in E1 and the ending period is in E2, I use, instead of your D2, (E2-E1). That is, I let Excel do the calculation of days. And, for an every day, automatic calculation for up-to-the-present-day calculation, I use (NOW()-E1). Makes things a lot easier!
I haven't checked out this next statement, but, I would think the banks and such would use 366 for the number of days for a leap year.
You could actually let Excel supply the right number of days by using, instead of 365 or 366, (E4-E3), where E4 contains the date with the last day of the year, and E3 the date of the first day of the year, say, E3 would have 01/01/2003, and E4 would have 12/31/2003.