[Remind-Fans] Two weeks on, one week off?

Tim Chase remind at tim.thechases.com
Wed Sep 20 14:01:55 EDT 2023


On 2023-09-20 13:52, Dianne Skoll via Remind-fans wrote:
> Edward Shapard wrote:
> 
> > Does anyone know of an easy way to schedule something that will occur 
> > every day for two weeks, but then have one week off and then repeat?
> 
> There are a bunch of ways, but this one worked for me.  It assumes
> that a two-week-on cycle started on 2023-09-02.
> 
>    REM FROM 2023-09-02 SATISFY [(($T - '2023-09-02') % 21) < 14] MSG Med
> 
> (You don't technically need the "FROM 2023-09-02" part if you don't care
> what happens for dates before that day.)

Or, employ that trigfrom() you graciously slid in for me...

  REM FROM Sep 2 2023 SATISFY [(($T - trigfrom()) % 21 < 14)] MSG meds

That way, if things get thrown off (having recently experienced a
prescription supply-chain disruption, I know the annoyance) and
you have to change the start-date, you only have to update it in
one place rather than both.  :-)

-tim



More information about the Remind-fans mailing list