I ran into issues coding an interest calculator for personal usage when I realized that the length of a year is variable. My unit tests were failing because all the finance examples never explained how they dealt with time changing out from under the formulas they were using, and all the computer knew was Unix time.
I still don't exactly know how to handle this. If you start an account that compounds interest continuously, does the daily interest rate change if one year is longer than another?
I still don't exactly know how to handle this. If you start an account that compounds interest continuously, does the daily interest rate change if one year is longer than another?