Deadline
The 140 full days / 280 half days are counted per calendar year, not per residence permit.
Only days you actually work count; paid or unpaid leave and sick days do not. If you reach the limit before the year ends, the count starts again only in January of the next year. According to the city, the residence permit always contains its own provisions on taking up work, which may differ from the statutory rules.