What I’m trying to do
I’d like to create a formula in a table that calculates the duration between two dates listed in separate columns. It should automatically retrieve dates from corresponding rows and output the total number of days from the start date to the end date. For instance, if the start date is 2024-01-01 and the end date is 2024-01-02, the formula should return 2 days. Additionally, I would like this formula to work with links to my daily notes.
Things I have tried
This gets me the right output, but I have to input each day twice, once in start/stop and once in total days.
| Start | End | Total Days |
| ---------- | -------------------------------------- | --------------------------------------------- |
| 2024-01-01 | 2024-01-02 | `=(date(2024-01-02)-date(2024-01-01)).days+1` |
| 2024-02-05 | [[../journals/2024-02-07\|2024-02-07]] | `=(date(2024-02-07)-date(2024-02-05)).days+1` |
I am willing to use whatever plugin works.