On Wed, 30 Jul 2025 22:28:55 +0000 Ricardo via Remind-fans <[email protected]> wrote:
> 1 - Every January > 2 - After day 06 ignore first sunday. > 3 - The festival is in the Thursday before the next sunday. OK, so if I read it correctly, the *earliest* the festival can be is if Jan 6 is a Saturday. Then we go to Sunday, the 14 and back 3 to Thursday, the 11th. The *latest* it can be is if Jan 6 is a Sunday, meaning we go to Sunday the 20 and back 3 to Thursday the 17th. So it's a Thursay in the range 11-17: REM Thu 11 January MSG Lavagem do Bonfim If Jan 6 is a Sunday and we do count that one, then it changes it slightly; in that case, the earliest it can be is 10 instead of 11 and we get: REM Thu 10 January MSG Lavagem do Bonfim I'm not sure which rule applies. Generally speaking, when you have a complicated specification like this, it usually boils down to something simple. There are (usually) only 7 possibilities depending on which day of the week the anchor day is. So you try them all, figuring out the earliest possible date of the holiday, and then your reminder pretty much derives directly from that. US Election Day, for example, is the "First Tuesday after the first Monday in November" which is simply: REM Tue 2 Nov MSG US Election Day (Federal election day only happens in even-numbered years, but never mind that...) Regards, Dianne. _______________________________________________ Remind-fans mailing list [email protected] https://dianne.skoll.ca/mailman/listinfo/remind-fans Remind is at https://dianne.skoll.ca/projects/remind/
