def _get_offset_day(self, other):
dim = ccalendar.get_days_in_month(other.year, other.month)<EOL>mend = datetime(other.year, other.month, dim)<EOL>wday = mend.weekday()<EOL>shift_days = (wday - self.weekday) % <NUM_LIT:7><EOL>return dim - shift_days<EOL>
Find the day in the same month as other that has the same
weekday as self.weekday and is the last such day in the month.

Parameters
----------
other: datetime

Returns
-------
day: int