While the above works, depending on your application you might want to ensure that you are dividing by the number of trading days rather than calendar days, cf the discussion here: Getting the third Friday of the month - #4 by lungben
nilshg
3
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Difference between two dates in Julia | 8 | 1604 | August 28, 2023 | |
| Integer value of difference between two dates | 1 | 471 | June 4, 2022 | |
| Difference between dates, in years | 3 | 174 | July 24, 2025 | |
| Convert Date difference to Float64 | 8 | 1199 | April 6, 2022 | |
| Operations with time duration | 20 | 3438 | July 22, 2021 |