docs: static int invertWeekdayNum(
              WeekdayNum weekdayNum, Weekday dow0, int nDays) {
          assert weekdayNum.num < 0;
          // how many are there of that week?
          return countInPeriod(weekdayNum.wday, dow0, nDays) + weekdayNum.num + 1;
      }