Our dentist now has a 7mo waiting-list so it's advantageous to schedule
your NEXT appointment a month before your impending 6-month checkup.

So my hope was to create a dental-appointment reminder like

  REM Jan 12 2026 AT 9:00am MSG Dentist

and then do a little math to create a "call and set up an appointment
for 7mo from now" event on a Monday sometime about a month before that
appointment.  My first try was something like

  REM Jan 12 2026 AT 9:00am MSG Dentist
  REM Mon [$T - 35] REM Call dentist

where all I need to do is update the most recent dental appointment date
and have the call-reminder come along without any editing.

And that seemed to work (some BANNER and $AddBlankLines=0 for quietude)

  $ rem -q 2025-12-8
  Call dentist

until I then tested a date after the actual dental appointment

  $ rem -q 2026-1-13
  /home/demo/.reminders(6): `-': Date overflow
  No reminders.

Which makes sense because $T didn't actually fire for the dental
appointment (because it was in the past), so the [$T-35] produces an
out-of-range date.

The closest I've been able to come with the least redundancy is
something like

  SET dentaldate date(2026,1,12)
  REM [dentaldate] AT 9:00am MSG Dentist
  REM Mon [dentaldate - 35] MSG Call dentist

which passes all my tests, but feels a bit weird.

Is there some better way to achieve what I'm aiming for here?

Thanks!

-tim
-- 





_______________________________________________
Remind-fans mailing list
[email protected]
https://dianne.skoll.ca/mailman/listinfo/remind-fans
Remind is at https://dianne.skoll.ca/projects/remind/

Reply via email to