I'm building a LaTeX document that helps me to formulate quotations for my customers.
Since I decided to offer monthly recurring payments I'd like to have payment dates calculated automatically starting from a specific one.
Say, for example, that you have:
\today{}
then I need to have:
\today
+30 days\today
+60 days\today
+180 days
and so on…
Is that possible?
EDIT: I ended up using the package advdate
because I obtained a more compact result to do this:
% Payment starts in 4 months.
\AdvMonth{4}
% 1 chunk per month -> due date:
\begin{enumerate*}
\AdvMonth{1} \item due date: \textbf{\today}
...
\end{enumerate*}
Best Answer
See the advdate package.
Edit Six years later, I am finally getting around to adding an example. It does what the package says it does.
Two things to notice there:
To advance by 30 days, for instance, the syntax is
\AdvanceDate[30]
.The package effectively uses
\today
as a variable. Which means if you are recording several dates relative to today, you need to advance incrementally. If you want 30 days, then 60 days, you need to call\AdvanceDate[30]
twice.Of course, TeX's scoping rules are still in effect. So if you advance
\today
in a group, the changes end when the group ends. So if you make a table your increments are forgotten at the end of each cell.Here is an example document, showing both of these: