I am not looking for a formula to calculate the difference of two dates. I am looking for a notation to express the difference of two dates in a formula.
Is there a common way to do that? If not what would be a good way to express that?
I am thinking of something like this:
$t = diff(D_1, D_2)$
where $t \ge 0$ is the number of days and $D_1$ and $D_2$ are two dates.