[Remind-Fans] Help calculating payday

David F. Skoll dfs at roaringpenguin.com
Sun Apr 28 12:47:11 EDT 2013


On Sun, 28 Apr 2013 08:56:51 -0500
fREW Schmidt <frioux at gmail.com> wrote:

> Ok, so the above does what I'd like, find the fourth weekday of a
> month.  I thought it would be easy to extrapolate from there for the
> next payday but I can't figure it out.  I need to find the 3rd weekday
> after, but not including, the 15th of the month.   Any ideas?

Does this work?

REM Mon Tue Wed Thu Fri SATISFY [nonomitted(date($Ty, $Tm, 16), max(date($Ty, $Tm, 16), $T), "Sat", "Sun") == 2] MSG Payday

It's not clear to me what is supposed to happen if the 15th is a
weekend, but the above is my interpretation.

Regards,

David.


More information about the Remind-fans mailing list