Tarlika Elisabeth Schmitz | 9 Feb 2009 22:17
Picon

OMIT weekends and holidays

I would like to be reminded of automated bank payments on the due date.
Payments for the scheduled day of the month take place on a working day
on or after that date.

I thought I had this sussed but one of my payment reminders does not
work:

OMITted bank holidays:
- Easter Monday (13th Apr 2009)
- 1st Monday in May (4th May 2009)

FSET _lastweek() trigger(today()-7)

REM 12 SCAN [_lastweek()] +7 OMIT Sat Sun AFTER MSG credit card due %v
REM 04 SCAN [_lastweek()] +7 OMIT Sat Sun AFTER MSG insurance due %v

The credit card payment reminders comes up on 14th April 2009.
The insurance payment reminder says on 4th May that payment is due
"tomorrow". But it does NOT trigger on the 5th, the due date.

I am totally flummoxed.

--

Best Regards,
Tarlika Elisabeth Schmitz, Scotland

Tarlika Elisabeth Schmitz | 11 Feb 2009 16:36
Picon

Re: OMIT weekends and holidays

On Mon, 9 Feb 2009 21:17:23 +0000
Tarlika Elisabeth Schmitz <remind@...> wrote:

> I would like to be reminded of automated bank payments on the due
> date. Payments for the scheduled day of the month take place on a
> working day on or after that date.
> 
> 
> I thought I had this sussed but one of my payment reminders does not
> work:
> 
> OMITted bank holidays:
> - 1st Monday in May (4th May 2009)
> 
> 
> FSET _lastweek() trigger(today()-7)
> 
> REM 04 SCAN [_lastweek()] +7 OMIT Sat Sun AFTER MSG insurance due %v
> 
> 
> The insurance payment reminder says on 4th May that payment is due
> "tomorrow". But it does NOT trigger on the 5th, the due date.

The problem was with my "1st Monday in May" OMIT

REM Mon 1 May SATISFY [TRUE]
OMIT [_trig()] MSG %"May Bank Holiday%"

On the day after the holiday the holiday was no longer triggered for
this year. Once I added "SCAN [_lastweek()]" to the holiday reminder,
(Continue reading)

David F. Skoll | 11 Feb 2009 17:07
Favicon

Re: OMIT weekends and holidays

Tarlika Elisabeth Schmitz wrote:

> The problem was with my "1st Monday in May" OMIT

Movable OMITs are surprising.  From the man page:

    In general, use SCANFROM as shown for safe movable OMITs.   The  amount
    you  should  scan  back by (7 days in the example above) depends on the
    number of possible consecutive OMITted days that may occur, and on  the
    range of the movable holiday.  Generally, a value of 7 is safe.

Regards,

David.

Tarlika Elisabeth Schmitz | 11 Feb 2009 17:26
Picon

Re: OMIT weekends and holidays

On Wed, 11 Feb 2009 11:07:20 -0500
"David F. Skoll" <dfs@...> wrote:

> Tarlika Elisabeth Schmitz wrote:
> 
> > The problem was with my "1st Monday in May" OMIT
> 
> Movable OMITs are surprising.  From the man page:
> 
>     In general, use SCANFROM as shown for safe movable OMITs.   The
> amount you  should  scan  back by (7 days in the example above)
> depends on the number of possible consecutive OMITted days that may
> occur, and on  the range of the movable holiday.  Generally, a value
> of 7 is safe.

I had read this before but it didn't click until I debugged my reminder.
--

Best Regards,

Tarlika Elisabeth Schmitz

Tarlika Elisabeth Schmitz | 13 Feb 2009 22:35
Picon

Re: OMIT weekends and holidays

On Wed, 11 Feb 2009 15:36:46 +0000
Tarlika Elisabeth Schmitz <remind@...> wrote:

> On Mon, 9 Feb 2009 21:17:23 +0000
> Tarlika Elisabeth Schmitz <remind@...> wrote:
> 
> > I would like to be reminded of automated bank payments on the due
> > date. Payments for the scheduled day of the month take place on a
> > working day on or after that date.

REM 13 OMIT Sat Sun AFTER +4 MSG pay bill

Another thing that caught me out: the delta of +4 does give me advance
warnings on omitted days although these are not counted.

How can I achieve 4 advance messages issued on working days only?

--
Tarlika Elisabeth Schmitz

David F. Skoll | 13 Feb 2009 23:04
Favicon

Re: OMIT weekends and holidays

Tarlika Elisabeth Schmitz wrote:

> REM 13 OMIT Sat Sun AFTER +4 MSG pay bill

> Another thing that caught me out: the delta of +4 does give me advance
> warnings on omitted days although these are not counted.

> How can I achieve 4 advance messages issued on working days only?

I don't have a particularly clean solution... this is the best
I could come up with:

FSET _working_day(x) wkdaynum(x) > 0 && wkdaynum(x) < 6 && !isomitted(x)

IF _working_day(today())
    REM 13 OMIT Sat Sun AFTER +4 MSG pay bill
ENDIF

Regards,

David.

Tarlika Elisabeth Schmitz | 16 Feb 2009 16:27
Picon

Re: OMIT weekends and holidays

On Fri, 13 Feb 2009 17:04:53 -0500
"David F. Skoll" <dfs@...> wrote:

> Tarlika Elisabeth Schmitz wrote:
> 
> > REM 13 OMIT Sat Sun AFTER +4 MSG pay bill
> 
> > Another thing that caught me out: the delta of +4 does give me
> > advance warnings on omitted days although these are not counted.
> 
> > How can I achieve 4 advance messages issued on working days only?
> 
> I don't have a particularly clean solution... this is the best
> I could come up with:
> 
> FSET _working_day(x) wkdaynum(x) > 0 && wkdaynum(x) < 6
> && !isomitted(x)
> 
> IF _working_day(today())
>     REM 13 OMIT Sat Sun AFTER +4 MSG pay bill
> ENDIF

Thank you for your prompt replies, David.

Your above suggestion does the trick. It's just a shame that my remind
file will look a bit cluttered as most my payment reminders would
follow that logic.

Seeing as remind offers ++ and + to treat omitted days differently,
what was the idea behind + not counting omitted days but messaging
(Continue reading)

Tarlika Elisabeth Schmitz | 17 Feb 2009 00:37
Picon

Re: OMIT weekends and holidays

On Mon, 16 Feb 2009 15:27:37 +0000
Tarlika Elisabeth Schmitz <remind@...> wrote:

> Seeing as remind offers ++ and + to treat omitted days differently,

Continuing the topic of back and delta with omit ...

REM Mon 1 May SCANFROM [_lastweek()] SATISFY [TRUE]
OMIT [trigger(trigdate())]  MSG May Bank Holiday

REM 2 OMIT Sat Sun AFTER ++7 -1 MSG fund account %v

On the working day on or following the 2nd of the month a standing
order payment is carried out.
On the calendar day prior to the payment I need a reminder to fund the
account.

AFTER pushes the trigger, quite correctly, after any holidays and
weekends. -1 moves the trigger date to the previous working (not
calendar) day.

I could do with something like a --1 which ignores the OMITs. ;-)

Do I have to do this in 2 statements?, e.g.:
REM 2 OMIT Sat Sun AFTER -1 SATISFY 1
REM [trigger(trigdate()-1)] MSG fund account %v

I also tried 
REM trigger(trigdate())] -1 MSG fund account %v
but this produced the message on Sunday 3rd rather than Bank Holiday
(Continue reading)

Tarlika Elisabeth Schmitz | 17 Feb 2009 12:06
Picon

Re: OMIT weekends and holidays

On Mon, 16 Feb 2009 23:37:33 +0000
Tarlika Elisabeth Schmitz <remind@...> wrote:

> On Mon, 16 Feb 2009 15:27:37 +0000
> Tarlika Elisabeth Schmitz <remind@...> wrote:
> 
> > Seeing as remind offers ++ and + to treat omitted days differently,
> 
> [...]
> 
> REM Mon 1 May SCANFROM [_lastweek()] SATISFY [TRUE]
> OMIT [trigger(trigdate())]  MSG May Bank Holiday
> 
> [...]
> 
> On the working day on or following the 2nd of the month a standing
> order payment is carried out.
> On the calendar day prior to the payment I need a reminder to fund the
> account.
> 
> [...]
> 
> I could do with something like a --1 which ignores the OMITs. ;-)

Ouch - just found it in the manual.

I had another attempt:

1)
REM 2 OMIT Sat Sun AFTER --1 MSG fund account %v
(Continue reading)

Ian! D. Allen | 27 Feb 2009 17:37
Picon
Favicon
Gravatar

keeping it short and simple

March 17 to March 19 I want a three day reminder for "foo".
I want it in the calendar attached to a URL with some background shading.
I want a text reminder as well, but I want text warnings of the event
starting three days before, and this must not affect the calendar entry. 

Is this the smallest set of Remind code that will do it?

----------------------------------

# Set the shading of each day.
#
SET shadeR 255
SET shadeG 255
SET shadeB 255

[... lots of other reminders that may adjust shading ...]

set t "foo"
set d "Mar 17 2009 *1 UNTIL Mar 19 2009"
REM [d] ++3 PRIORITY 0000 MSG %"%"[t] %b% 
IFTRIG [d]
    REM 0000 SPECIAL HTML <p style="background-color: #aaffaa"><a href="http://foo/">[t]</a></p>
    SET shadeR shadeR -55
    SET shadeG shadeG -0
    SET shadeB shadeB -55
ENDIF

[... lots of other reminders that may adjust shading ...]

REM PRIORITY 0000 SPECIAL SHADE [shadeR] [shadeG] [shadeB]
(Continue reading)


Gmane