I am trying to handle groups which meet either once a week, twice a month or once a month - on any day of the week. I would like to calculate the number of occurrences any given configuration would generate for a given time frame.
For example, say a group meets every Friday, from Jan 1 to June 30, how many times would they meet? Or, if a group meets on Tuesday every other week, from Jan 1 to June 30, how many times would they meet? Etc.
Is this possible in php? I'm not seeing a solution in the DateInterval manual.
Thank you for any help.