My g-brief
will contain something like "I have noted a deadline for your answer of ten working days until…".
Is there a package or way to add n
working-days (ie. mon-fri, let's not over complicate things with holidays etc 😉 to todays date programmatically?
I have found an approximate solution in the datenum
and advdate
packages:
\setdatetoday
\addtocounter{datenumber}{10}
\setdatebynumber{\thedatenumber}
But this "only"* adds the days, not taking into account if a day is a working day or a free day (ie. weekend).
*In the humble "I couldn't have done anything remotely like this myself (so I'm thankful for it), but it doesn't quite fit my need and possibly could be tweaked"-way.
Best Answer
Here's a solution using the
pgfcalendar
package (part of thepgf
bundle.)This produces:
You can adapt this to take holidays into account:
This produces: