Hello, Uwe Brauer wrote at 16:33 on August 18, 2019:
: The problem seems to be that there is no function : calendar-last-day-of-week. Well, there is, it's called `calendar-week-end-day'. This returns the index into 'calendar-day-name-array. Note that the variable 'calendar-week-start-day should be set properly (it defaults to 0 = $SUNDAY, while I set this to 1, meaning $MONDAY). This will only get you as far as computing the name of the day. Computing a date and/or timestamp for an instance of that day name relative to a date is quite another matter. The file calendar/time-date.el might provide useful stuff for doing so. Thomas