Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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*}
share|improve this question

2 Answers 2

up vote 12 down vote accepted

See the advdate package.

share|improve this answer
10  
This answer would benefit from an example. –  Martin Scharrer Oct 16 '11 at 16:37

This is possible with the datenumber package

\documentclass{article}
\usepackage{datenumber}

\begin{document}

\setdatetoday
\addtocounter{datenumber}{30}%
\setdatebynumber{\thedatenumber}%
In 30 days is \datedate

\setdatetoday
\addtocounter{datenumber}{60}%
\setdatebynumber{\thedatenumber}%
In 60 days is \datedate

\setdatetoday
\addtocounter{datenumber}{90}%
\setdatebynumber{\thedatenumber}%
In 90 days is \datedate

\end{document}

Which results in:

enter image description here

share|improve this answer
    
+1 But I still need that the first date is parametric, not just from today. –  microspino Nov 3 '10 at 15:50
5  
@microspino, if you run texdoc datenumber on a command line, you'll find out about a command \setdatenumber to start from arbitrary dates. –  Juan A. Navarro Nov 3 '10 at 16:03
    
Thanks a lot for the command line tip @Juan A. Navarro –  microspino Nov 3 '10 at 17:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.