<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: hc_xshh</title>
    <description>The latest articles on DEV Community by hc_xshh (@hcxshh).</description>
    <link>https://dev.to/hcxshh</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4143807%2F2c438934-1857-446a-a83d-47b92f428b29.jpg</url>
      <title>DEV Community: hc_xshh</title>
      <link>https://dev.to/hcxshh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hcxshh"/>
    <language>en</language>
    <item>
      <title>Six documents for one sick-leave number, and one that had quietly expired</title>
      <dc:creator>hc_xshh</dc:creator>
      <pubDate>Fri, 27 Nov 2026 22:42:04 +0000</pubDate>
      <link>https://dev.to/hcxshh/six-documents-for-one-sick-leave-number-and-one-that-had-quietly-expired-5ced</link>
      <guid>https://dev.to/hcxshh/six-documents-for-one-sick-leave-number-and-one-that-had-quietly-expired-5ced</guid>
      <description>&lt;p&gt;I wanted one number: how long can a person in China be off sick before the employer can end the contract. I ended up with six documents, four of which disagree about how to produce that number, and one that had quietly expired.&lt;/p&gt;

&lt;p&gt;This is a notes-from-the-checking post, not a summary of the rules. The rules themselves are in &lt;a href="https://notebookfield.com/posts/china-sick-leave-medical-period/" rel="noopener noreferrer"&gt;the finished page&lt;/a&gt;; what follows is what I got wrong on the way, in the order I got it wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  The first document is a 1994 order, and its table has seven rows
&lt;/h2&gt;

&lt;p&gt;The medical period — the stretch during which the contract may not be terminated for illness — comes from a Ministry of Labour order published on 1 December 1994 (&lt;a href="https://www.gov.cn/zhengce/2022-08/31/content_5711269.htm" rel="noopener noreferrer"&gt;State Council portal copy&lt;/a&gt;). Article 3 gives a table crossing total working years with years at the current employer. Seven rows, from three months up to twenty-four.&lt;/p&gt;

&lt;p&gt;I had assumed six rows, because two sources I read earlier compressed the table into "under ten years: three or six months". The compression is not wrong, exactly; it loses the row that matters for anyone who changed jobs late. Twenty-two years of total service with three years at the new employer gives six months, the same as a five-year employee. The top row needs twenty years at one employer whatever your total.&lt;/p&gt;

&lt;p&gt;Lesson one: read the table, not the summary of the table. The number of rows is the number of cases, and the cases are the argument.&lt;/p&gt;

&lt;h2&gt;
  
  
  The window is longer than the period, and it is not extra leave
&lt;/h2&gt;

&lt;p&gt;Article 4 pairs each period with a longer window: three months of period accumulates inside six months; six inside twelve; nine inside fifteen; twenty-four inside thirty.&lt;/p&gt;

&lt;p&gt;I read this the wrong way on the first pass. It looks like a bonus — nine months of protection, fifteen months to use it. It is closer to a spend-by date. Sick days are added up inside the window and the entitlement is gone when the total reaches the period, whether or not the window has run out.&lt;/p&gt;

&lt;p&gt;So I built a small example with dates, because the arithmetic is where the trap bites. Nine-month period, fifteen-month window starting 1 January. Four months off, three months back at work, then ill again from 1 August. The entitlement runs out on 31 December, five months into the second stretch, while the window still has three months on it. Nobody who reads only the period table would guess that.&lt;/p&gt;

&lt;p&gt;Lesson two: when two durations sit in the same rule, convert them into dates before believing you understand either.&lt;/p&gt;

&lt;h2&gt;
  
  
  Calendar days, not working days
&lt;/h2&gt;

&lt;p&gt;The 1994 order does not say how to count. A &lt;a href="https://www.jiujiang.gov.cn/hdjl/xccjwt/mszxl/201912/t20191217_2253647.html" rel="noopener noreferrer"&gt;1995 notice&lt;/a&gt; from the same ministry supplies two bullets: the count starts on the first day of sick leave, and public rest days, holidays and festival days are included.&lt;/p&gt;

&lt;p&gt;That second bullet is the one that changes numbers. A three-month period is about 91 calendar days, of which roughly 65 are working days. If you are modelling cost or coverage, the difference is a third.&lt;/p&gt;

&lt;p&gt;I did not want to rely on my reading of a 1995 notice, so I looked for an official restatement. A municipal personnel bureau answered exactly this question in a public reply dated 30 March 2026 — working days or calendar days — and quoted both bullets back. That is the closest thing to a current statement I could find, thirty-one years after the notice.&lt;/p&gt;

&lt;h2&gt;
  
  
  The document that had quietly expired
&lt;/h2&gt;

&lt;p&gt;A municipality — I will call it the city, since the name is irrelevant to the lesson — publishes its own medical-period standard: three months in the first year at the employer, one more for each further year, capped at twenty-four. Different formula, same subject.&lt;/p&gt;

&lt;p&gt;The PDF's last article says it is valid until 30 June 2020.&lt;/p&gt;

&lt;p&gt;If I had stopped there, I would have written that the local rule was dead and the national table applied everywhere. A search for the document's number turned up a 2025 municipal notice extending the same rule to 30 June 2030. The rule is alive; only its first validity clause is stale.&lt;/p&gt;

&lt;p&gt;Lesson three: a document's own validity clause is a fact about the document, not about the rule. Check for extensions before you pronounce anything expired. This is the same step that catches repealed-by-implication regulations, and it is cheap: one search on the document number.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rules do not travel, and the divergence cuts both ways
&lt;/h2&gt;

&lt;p&gt;Comparing the local formula with the national table across four profiles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;twelve total years, seven at the employer: nine months either way;&lt;/li&gt;
&lt;li&gt;twenty-two total, three at the employer: six months national, five local;&lt;/li&gt;
&lt;li&gt;nine total, six at the employer: six months national, eight local;&lt;/li&gt;
&lt;li&gt;twenty total, one at the employer: six months national, three local.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The local formula is not a rounding of the national one. It is stricter for long-career newcomers and more generous for long-tenure short-career workers. Both directions appear in the same four rows, which is a good sign the comparison is real rather than an artefact of one badly chosen example.&lt;/p&gt;

&lt;p&gt;Lesson four: a single example tells you which rule is kinder, two examples tell you whether the rules are the same rule. Four is better.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pay floor is one sentence in a 1995 opinion
&lt;/h2&gt;

&lt;p&gt;The 80 per cent figure everyone quotes — sick pay may go below the local minimum wage but not below 80 per cent of it — is article 59 of a 1995 opinion on implementing the Labour Law. One sentence, easy to quote, and it is a floor rather than a formula: the schedule above the floor is set locally and varies.&lt;/p&gt;

&lt;p&gt;The ministry's own page for this opinion refused my automated request, returning a JavaScript challenge page of under a kilobyte. A municipal personnel bureau had republished the full text, so I read article 59 there and checked the numbering against a provincial page before citing it.&lt;/p&gt;

&lt;p&gt;Lesson five: a blocked source is not a missing source. Municipal and provincial sites republish national documents often, and they serve plain HTML. Keep the original URL in the citation even when you read a copy, and say so in the method section.&lt;/p&gt;

&lt;h2&gt;
  
  
  A 2026 rule that looks relevant, and is not
&lt;/h2&gt;

&lt;p&gt;While searching for changes, I hit a 2026 regulation on workers past retirement age, effective 1 July 2026. Several articles about it claim it gives those workers a medical period.&lt;/p&gt;

&lt;p&gt;I read the text as served by the national news agency. It sets out written agreements, hours, pay, work-injury cover and dispute routes, and it does not use the term medical period anywhere I could see. That may be an artefact of a paginated page rather than the whole regulation, so the honest output is a line in "what I could not check", not a claim in either direction.&lt;/p&gt;

&lt;p&gt;Lesson six: when a secondary source says a new rule "gives" a right, search the rule's own text for the term. If the term is absent and your copy might be partial, write down the doubt instead of resolving it by preference.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the checking changed
&lt;/h2&gt;

&lt;p&gt;The finished page has five tables and 27 links, and the four sections I nearly wrote from memory — row count, window semantics, day counting, local divergence — are the four that carry the value. The rest is quotation.&lt;/p&gt;

&lt;p&gt;If I did this again, I would build the comparison table first and read the documents against it. Reading first produces a summary of whichever document I opened first; the table forces each document to answer the same question, and the disagreements show up as empty or contradictory cells rather than as prose I have to remember to doubt.&lt;/p&gt;

&lt;p&gt;The site's method section lists every source with its date, and the closing section lists what I could not check, including the paginated 2026 regulation and the calculation base for the local pay percentages. That list is the part I would keep if I had to throw the rest away.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with an AI assistant from my own reading of the primary documents; every clause number and link here was checked against the source.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>china</category>
      <category>law</category>
      <category>research</category>
      <category>writing</category>
    </item>
    <item>
      <title>A 15-day deadline that is really 15 working days</title>
      <dc:creator>hc_xshh</dc:creator>
      <pubDate>Thu, 26 Nov 2026 22:36:49 +0000</pubDate>
      <link>https://dev.to/hcxshh/a-15-day-deadline-that-is-really-15-working-days-3j51</link>
      <guid>https://dev.to/hcxshh/a-15-day-deadline-that-is-really-15-working-days-3j51</guid>
      <description>&lt;p&gt;I spent a morning reconciling three official documents about one document: a residence permit for foreigners in China. The permit is a sticker, but the interesting part is the paperwork around it. Three texts describe the same deadlines, and they do not print the same numbers.&lt;/p&gt;

&lt;h2&gt;
  
  
  The conflict, in one sentence
&lt;/h2&gt;

&lt;p&gt;The statute says the exit-entry office decides a residence permit application within fifteen days. The service guide says the receipt it hands you is valid for fifteen working days. Fifteen days and fifteen working days differ by up to six calendar days, and both sentences are still in force.&lt;/p&gt;

&lt;p&gt;Here is what each text contributes:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Text&lt;/th&gt;
&lt;th&gt;What it fixes&lt;/th&gt;
&lt;th&gt;Where it is thin&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Exit and Entry Administration Law (2013)&lt;/td&gt;
&lt;td&gt;The outer bands: 30 days from entry to apply, 15 days to decide, permit lengths, extension 30 days before expiry, change within 10 days&lt;/td&gt;
&lt;td&gt;No papers, no fees, no counting rule&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Regulation 637 (revised 2025)&lt;/td&gt;
&lt;td&gt;Five permit categories, documents per category, 15-day receipt, who may apply on someone's behalf&lt;/td&gt;
&lt;td&gt;Delegates lengths and prices to a guide&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Service guide (2019)&lt;/td&gt;
&lt;td&gt;Category ceilings, fee bands, 15 working days, health-certificate window&lt;/td&gt;
&lt;td&gt;Written as what an office "may" issue&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The clause that looks like it reconciles them
&lt;/h2&gt;

&lt;p&gt;The regulation has an interpretation article at the end, and its last item says the approval periods and receipt validity set &lt;strong&gt;by this regulation&lt;/strong&gt; are counted in working days, excluding public holidays.&lt;/p&gt;

&lt;p&gt;That clause explains the regulation's own 15-day receipt. It does not obviously cover the statute's 15-day decision period, because the statute is not "this regulation". The guide, which is the document applicants actually read, then states fifteen working days for the receipt and says the decision is made inside that window.&lt;/p&gt;

&lt;p&gt;So the practical clock is the guide's, and the statutory clock is the one a lawyer would quote. I could not find a text that says which one governs when they collide.&lt;/p&gt;

&lt;h2&gt;
  
  
  Count, don't skim
&lt;/h2&gt;

&lt;p&gt;The habit that paid off here was counting strings in the extracted text instead of reading for meaning. Two examples from the same session:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The 2025 revision of the regulation was published together with an amending decision. The decision lists two substantive additions — a new visa category and its documents — and then a renumbering. Reading only the decision would have made the change look bigger than it is; reading the consolidated text shows the rest is arithmetic on article numbers.&lt;/li&gt;
&lt;li&gt;A question I had was whether the regulation says anything about where a foreigner registers an address. Counting the term for accommodation registration across both versions gave zero hits in the regulation and four in the statute, which settled it faster than reading either document end to end.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Neither check took a script longer than ten lines. Both produced a claim I could re-run later, which is the point.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three more places where the guide wins
&lt;/h2&gt;

&lt;p&gt;The service guide is a 2019 web page from the immigration administration. It is not a statute, and yet it carries the numbers people actually pay and wait for.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fee bands.&lt;/strong&gt; The pricing notice from 2004 sets three bands by validity: under one year, one to under three, three to five. The guide repeats them. The notice also adds a line the guide omits: a change of the permit costs 200 yuan per time. A 2026 city price list repeats the same lines and still has no separate extension fee.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The health certificate.&lt;/strong&gt; A permit of one year or more needs a health certificate, and the certificate is valid six months from the day it is issued. That converts a duration rule into a date problem: a medical done seven months before the application is stale even though nothing about the applicant changed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The minor's ceiling.&lt;/strong&gt; The guide allows a family permit of up to three years for someone under 18, then says the end date cannot pass the eighteenth birthday. A sixteen-year-old gets two years. The ceiling is a birthday wearing a duration's clothes.&lt;/p&gt;

&lt;h2&gt;
  
  
  A tiny bit of code that made the fee table honest
&lt;/h2&gt;

&lt;p&gt;The fee bands have inclusive boundaries, which is where hand-written tables go wrong. This is the check I used while drafting:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;fee&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;days&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;365&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;400&lt;/span&gt;          &lt;span class="c1"&gt;# under one year&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;365&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;800&lt;/span&gt;          &lt;span class="c1"&gt;# one year (inclusive) to under three&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;365&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;         &lt;span class="c1"&gt;# three (inclusive) to five (inclusive)&lt;/span&gt;
    &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;ValueError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"above the statutory five-year ceiling"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;fee&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;364&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;400&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;fee&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;365&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;800&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;fee&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;365&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;800&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;fee&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;365&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;fee&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;365&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The per-year figure is the part readers remember: 400 a year at the one-year band, about 267 at three years, 200 at five. A five-year permit costs 2.5 times as much as a one-year and half as much per year. That is arithmetic on the notice, not a number any of the documents prints.&lt;/p&gt;

&lt;p&gt;The same honesty applies to the working-day conversion. Fifteen working days is up to twenty-one calendar days if three weekends fall inside the window, and more if a public holiday lands there. My number, from the calendar, not from the text.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell someone reading rules for a living
&lt;/h2&gt;

&lt;p&gt;The number you will be held to is usually the tightest one printed, and it is usually in the least authoritative document. Statutes set bands; regulations set procedures; service guides set the ceilings, the prices and the waiting rooms. If you stop at the statute you will quote a rule that no counter applies.&lt;/p&gt;

&lt;p&gt;The second habit is to date every claim. Three of the four numbers in this piece come from a 2019 guide whose pricing basis is from 2004. They are current as far as I can tell, but "current" here means "the newest text I could load", not "recently re-read by the issuing ministry".&lt;/p&gt;

&lt;h2&gt;
  
  
  What I could not resolve
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Which clock governs when the statute's fifteen days and the guide's fifteen working days disagree.&lt;/li&gt;
&lt;li&gt;Whether an extension is charged by the same validity bands. No text I read prices an extension separately.&lt;/li&gt;
&lt;li&gt;What "registered units in good standing" means for the two-year work permit; I found no published list.&lt;/li&gt;
&lt;li&gt;Whether every city applies the guide's ceilings; the ceilings are phrased as what an office may issue.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Drafted with an AI assistant from my own reading of the primary documents; every clause number and link here was checked against the source.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If you want the full tables — five permit categories, the documents each needs, the fee bands, the four clocks — they are in the post this one points at: &lt;a href="https://notebookfield.com/posts/china-residence-permit/" rel="noopener noreferrer"&gt;China's residence permit: four clocks on one passport sticker&lt;/a&gt;. Two related reads on the same chain: &lt;a href="https://notebookfield.com/posts/china-work-visa-types/" rel="noopener noreferrer"&gt;the Z visa, work permit and residence permit sequence&lt;/a&gt; and &lt;a href="https://notebookfield.com/posts/china-visa-stay-clock-and-overstay/" rel="noopener noreferrer"&gt;the stay clock that counts days from entry&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>china</category>
      <category>law</category>
      <category>research</category>
      <category>writing</category>
    </item>
    <item>
      <title>A 24-hour rule that isn't in the regulation everyone cites</title>
      <dc:creator>hc_xshh</dc:creator>
      <pubDate>Wed, 25 Nov 2026 22:38:19 +0000</pubDate>
      <link>https://dev.to/hcxshh/a-24-hour-rule-that-isnt-in-the-regulation-everyone-cites-247h</link>
      <guid>https://dev.to/hcxshh/a-24-hour-rule-that-isnt-in-the-regulation-everyone-cites-247h</guid>
      <description>&lt;p&gt;Everyone who has lived in China knows the sentence: register your address within 24 hours. Almost nobody can tell you which document says so. I went looking for it last week, expecting a page of rules about forms, offices and papers. What I found was one clause in a statute, a regulation that never mentions the subject, and a capital city police guide still printing a deadline that was repealed in 2013.&lt;/p&gt;

&lt;p&gt;This is the account of the search, not the rules themselves — the rules are &lt;a href="https://notebookfield.com/posts/china-accommodation-registration/" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: count, don't skim
&lt;/h2&gt;

&lt;p&gt;The obvious candidate for "the text that explains address registration" is the regulation on foreigners' entry and exit, &lt;a href="https://www.gov.cn/zhengce/content/2013-07/22/content_1269.htm" rel="noopener noreferrer"&gt;State Council order 637 from 2013&lt;/a&gt;, revised with effect from 1 October 2025. It is the document that sets visa categories, residence permits, and the extension rules. If any national text describes the filing procedure, it should be there.&lt;/p&gt;

&lt;p&gt;So I extracted the text from the State Council's page for the 2013 version and from a municipal police site for the 2025 revision, stripped the HTML, and counted occurrences of the Chinese phrase for "accommodation registration". Both files returned zero.&lt;/p&gt;

&lt;p&gt;Zero is a stronger finding than a long passage, and it took one line of Python:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="no"&gt;TERM&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"\u4f4f\u5bbf\u767b\u8bb0"&lt;/span&gt;   &lt;span class="c1"&gt;# accommodation registration, four characters&lt;/span&gt;
&lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"regulation-2025.txt"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;count&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;TERM&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;# 0&lt;/span&gt;
&lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"regulation-2013.txt"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;count&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;TERM&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;# 0&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two caveats before you trust a count like this. First, extract text server-side and check the extracted length: a 7,000-character page that should hold 40 articles is a paginated shell, not the law. Second, count the phrase you actually want. The regulation does talk about residence permits at length; it just never uses the term that the police counters use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: find the clause that does exist
&lt;/h2&gt;

&lt;p&gt;With the regulation excluded, the 24-hour rule has to live in the statute behind it, the &lt;a href="https://www.nia.gov.cn/n741440/n741547/c1013311/content.html" rel="noopener noreferrer"&gt;Exit and Entry Administration Law&lt;/a&gt; that took effect on 1 July 2013. It does, in article 39, and the article splits the duty in two:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a hotel registers the guest and reports the information to the public security bureau;&lt;/li&gt;
&lt;li&gt;a guest staying anywhere else files with the police within 24 hours of moving in, and the host may file instead.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Article 76 then attaches the consequences: a warning plus a fine of up to 2,000 yuan for the guest or host who does not file, and a separate paragraph for hotels that fail to register or fail to transmit.&lt;/p&gt;

&lt;p&gt;That asymmetry is the part I had wrong in my head. I assumed the guest carries the duty everywhere. Inside a licensed hotel, the guest has no filing duty at all under article 39(2) — the obligation is the hotel's, and so is the exposure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: check the departmental rule, because it has its own clock
&lt;/h2&gt;

&lt;p&gt;Hotels are not governed only by the immigration law. The State Council's rules for the hotel trade, in their 2022 revision, require a hotel to verify a guest's identity document, and for foreign guests to send the registration form to the police within 24 hours. Same number, different actor: the law's clock runs from the guest moving in, this one from the stay.&lt;/p&gt;

&lt;p&gt;The hotel rules also settle a question the statute leaves open. They define a hotel by function — any business that receives guests for lodging — and require a public-security trade licence before opening. That is why the practical test for "is this listing a hotel?" is not the sign on the door but whether the operator holds the licence. Local rules for short-term rentals vary, and I could not find a national text that names homestays directly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: look for stale numbers, and expect to find them
&lt;/h2&gt;

&lt;p&gt;The 72-hour figure is everywhere in older expat writing. It is real: the implementing rules that preceded regulation 637 gave foreigners 24 hours in towns and 72 hours in the countryside when staying in a Chinese household. Regulation 637 repealed those rules from 1 September 2013, and its closing article says so in one sentence.&lt;/p&gt;

&lt;p&gt;The number did not disappear, because two other populations kept it. Taiwan residents still have a 24-hour deadline with 72 hours in rural areas under their own 1994 rules, last revised in 2015. Hong Kong and Macao residents have the same pair under the 1986 travel rules. Three groups, three clocks — and only the foreigner lost the rural extension.&lt;/p&gt;

&lt;p&gt;Beijing's &lt;a href="https://gaj.beijing.gov.cn/wsgs/gkgs/202004/P020200420392859403306.pdf" rel="noopener noreferrer"&gt;four-page guide for registering foreign visitors&lt;/a&gt; was published in 2020, seven years after the repeal, and still prints the 72-hour line. It cites the implementing rules for Chinese citizens' exit and entry, a text repealed in 2020. This is the most useful lesson of the whole exercise: a city police PDF is an operational checklist, not a statement of current law, and nobody updates the appendix when the State Council deletes a regulation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: follow the money, i.e. the fines
&lt;/h2&gt;

&lt;p&gt;Penalties turned out to sit in two statutes, with a ceiling that runs the opposite way to intuition. The immigration law fines the guest or host up to 2,000 yuan. The public security punishment law, in its new version effective 1 January 2026, fines a hotel's responsible manager and staff 500 to 1,000 yuan for a missing registration, and 1,000 to 5,000 yuan sits in the immigration law for a hotel that never transmits the data. The manager's personal ceiling is half the guest's.&lt;/p&gt;

&lt;p&gt;A landlord carries a third duty: recording a tenant's identity document, 500 to 1,000 yuan under article 68 of the same law. Nothing in either text says one fine closes the other, so a rented flat with an unregistered foreign tenant can produce two separate penalties for two different people.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do differently next time
&lt;/h2&gt;

&lt;p&gt;Two things. First, start every Chinese rule check by counting terms in the extracted text rather than reading the table of contents — the phrase you need may be absent from the document everyone cites, and that absence is itself the finding. Second, treat every city guide as dated material with an implicit "as of" stamp; the Beijing PDF is still accurate about papers and offices, and wrong about the deadline it inherited from a dead regulation.&lt;/p&gt;

&lt;p&gt;Corrections welcome, especially from anyone who has seen a city office apply the rural window to a foreigner after 2013. I have not.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with an AI assistant from my own reading of the primary documents; every clause number and link here was checked against the source.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;Read next, if the paperwork chain matters to you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://notebookfield.com/posts/china-visa-stay-clock-and-overstay/" rel="noopener noreferrer"&gt;China's visa stay clock and the overstay tiers&lt;/a&gt; — how the same statute counts days from entry, and where the fine bands come from.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://notebookfield.com/posts/driving-in-china-on-a-foreign-licence/" rel="noopener noreferrer"&gt;Driving in China on a foreign licence&lt;/a&gt; — the registration certificate above is one of the documents the vehicle office asks for.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>china</category>
      <category>law</category>
      <category>immigration</category>
      <category>research</category>
    </item>
    <item>
      <title>Which document actually governs a Chinese green card? I traced it through four texts</title>
      <dc:creator>hc_xshh</dc:creator>
      <pubDate>Tue, 24 Nov 2026 22:38:27 +0000</pubDate>
      <link>https://dev.to/hcxshh/which-document-actually-governs-a-chinese-green-card-i-traced-it-through-four-texts-4amb</link>
      <guid>https://dev.to/hcxshh/which-document-actually-governs-a-chinese-green-card-i-traced-it-through-four-texts-4amb</guid>
      <description>&lt;p&gt;Half the English guides to a Chinese permanent residence card quote a regulation from 2020. That regulation was published for comment and, as far as I can find, never issued. The text that decides applications is a ministry order from 2004, and two of the references inside it now point at documents that no longer exist.&lt;/p&gt;

&lt;p&gt;I spent a morning tracing which document actually governs. This is the trail, with the checks that made each step stick.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: find what the issuing body publishes
&lt;/h2&gt;

&lt;p&gt;The order is &lt;a href="https://www.gov.cn/gongbao/content/2005/content_64214.htm" rel="noopener noreferrer"&gt;Public Security Ministry and Foreign Ministry Order No. 74&lt;/a&gt;, approved by the State Council on 13 December 2003 and issued on 15 August 2004. It runs to 29 articles.&lt;/p&gt;

&lt;p&gt;The check that matters is not the text itself but whether it is still live. The National Immigration Administration, the bureau that now signs the card, keeps the order on its own policy file page. When a rule has been replaced, that page is where the replacement shows up.&lt;/p&gt;

&lt;p&gt;The 2020 draft is still readable on the Justice Ministry's &lt;a href="https://zqyj.chinalaw.gov.cn/readmore?id=3654&amp;amp;listType=1" rel="noopener noreferrer"&gt;consultation system&lt;/a&gt;, with a comment window that closed on 27 March 2020. A consultation page is a record that a text was proposed, not that it became law.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: check the references inside the order
&lt;/h2&gt;

&lt;p&gt;Article 1 cites the 1985 law on the entry and exit of foreigners. That law was repealed on 1 July 2013. The article that does it is 93 of the Exit and Entry Administration Law, the last article of the text, which is where Chinese statutes usually put their repeal clause.&lt;/p&gt;

&lt;p&gt;The second broken reference is easier to miss because the name looks familiar. Article 7 sets four investment thresholds, and the first one points at "the encouraged industries" in the foreign investment catalogue. The catalogue under that name was replaced: the &lt;a href="https://www.gov.cn/zhengce/zhengceku/2019-09/26/content_5433611.htm" rel="noopener noreferrer"&gt;2019 encouraged catalogue&lt;/a&gt; repealed the 2017 list's encouraged section when it took effect on 30 July 2019. The current edition is the 2022 one, in force since 1 January 2023.&lt;/p&gt;

&lt;p&gt;So the thresholds are still law. The list they point at has moved twice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: find the routes that are not in the order
&lt;/h2&gt;

&lt;p&gt;Order 74 has seven gates. In 2019 the immigration administration issued a &lt;a href="https://gaj.beijing.gov.cn/xxfb/jwbd/201912/t20191220_1367133.html" rel="noopener noreferrer"&gt;twelve-point policy package&lt;/a&gt;, effective nationwide on 1 August, and three of its items create permanent residence routes the order does not contain.&lt;/p&gt;

&lt;p&gt;The one with numbers is item 2: four consecutive years of work in China, at least six months a year physically in the country, wage income at least six times the previous year's local average for urban employees, and annual individual income tax at least 20% of that wage standard.&lt;/p&gt;

&lt;p&gt;That changes the arithmetic of the application. The 2004 senior-post route asks for 36 months inside 48, which is 75% presence. The 2019 salary route asks for 24 months inside 48, which is 50%. Two documents, two clocks, no amendment to either.&lt;/p&gt;

&lt;p&gt;The package is a policy document, not a regulation. It widens who may apply; the order still governs the card, the procedure and the conditions attached to the status afterwards.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: test whether the two money tests are independent
&lt;/h2&gt;

&lt;p&gt;Item 2 sets two money tests, and the second one looked odd to me — a tax floor expressed as a share of the wage standard. If the two tests bind at the same income, one of them is decoration.&lt;/p&gt;

&lt;p&gt;The arithmetic needs three inputs: the average wage, the annual deduction, and the rate table. For the 2025 national non-private average, the statistics bureau &lt;a href="https://www.stats.gov.cn/sj/zxfbhjd/202605/t20260515_1963707.html" rel="noopener noreferrer"&gt;published 129,441 yuan&lt;/a&gt; on 15 May 2026. Six times that is 776,646.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;brackets&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;36000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.03&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;144000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2520&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;300000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;16920&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;420000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;31920&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;660000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;52920&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;960000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.35&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;85920&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"inf"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.45&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;181920&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;tax&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;taxable&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;cap&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;quick&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;brackets&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;taxable&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="n"&gt;cap&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;taxable&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;rate&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;quick&lt;/span&gt;

&lt;span class="n"&gt;wage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;129441&lt;/span&gt;              &lt;span class="c1"&gt;# 776,646&lt;/span&gt;
&lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;tax&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;wage&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;60000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;          &lt;span class="c1"&gt;# annual deduction&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;wage&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;wage&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;wage&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The output is 776646, 164906, 0.2123, 155329. Tax on six times the average is 21.2% of the salary, which clears the 20% floor (155,329 yuan) by 9,577 yuan.&lt;/p&gt;

&lt;p&gt;Try the other reading, where 20% means 20% of actual pay. A salary of 700,000 carries 139,080 yuan of tax, or 19.9%, and the test fails. At 750,000 it passes with 20.7%.&lt;/p&gt;

&lt;p&gt;So the two tests cross within a few tens of thousands of yuan of each other, at the national average. That is not an accident: the 20% figure sits at roughly the rate someone on six times the average already pays. The second test mostly catches a case the first one already filters, which matters if you were hoping the tax floor was a separate route in.&lt;/p&gt;

&lt;p&gt;One caveat on the calculation: it ignores social insurance contributions and the additional deductions, both of which reduce tax and therefore push the crossing point higher.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this changed in how I read the rule
&lt;/h2&gt;

&lt;p&gt;Two habits came out of it.&lt;/p&gt;

&lt;p&gt;First, treat the citation chain as part of the rule. An article that points at a repealed statute or a renamed catalogue is not wrong on its face, but whoever applies it has to resolve the reference, and the resolution is where the current numbers live.&lt;/p&gt;

&lt;p&gt;Second, check whether a route sits in a regulation or in a policy package. Regulations get amended and reprinted with new numbers. Policy packages arrive as numbered lists and are applied without amending the text they extend. The presence clocks differ by 25 percentage points between the two kinds, which is not a detail anyone can infer from either text alone.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I could not verify
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Whether any 2025 or 2026 document amends Order 74. I read the texts as published and found no replacement, but I did not page through a consolidated index of current immigration rules.&lt;/li&gt;
&lt;li&gt;Which wage series a local office uses for the six-fold test. The texts name the average wage for urban employees on-post; several provinces publish a different series today.&lt;/li&gt;
&lt;li&gt;How the discretionary gates are applied. "Major, outstanding contribution" has no published standard.&lt;/li&gt;
&lt;li&gt;Whether the 2020 draft has been formally withdrawn. I found the consultation page and no notice closing it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The full write-up, with the gates, the fee schedule and the entitlements attached to the card, is at &lt;a href="https://notebookfield.com/posts/china-permanent-residence-card/" rel="noopener noreferrer"&gt;notebookfield.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with an AI assistant from my own reading of the primary documents; every clause number and link here was checked against the source.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>china</category>
      <category>law</category>
      <category>python</category>
      <category>immigration</category>
    </item>
    <item>
      <title>The rule that pays for a Chinese workplace injury lives in four documents</title>
      <dc:creator>hc_xshh</dc:creator>
      <pubDate>Mon, 23 Nov 2026 22:38:19 +0000</pubDate>
      <link>https://dev.to/hcxshh/the-rule-that-pays-for-a-chinese-workplace-injury-lives-in-four-documents-4iai</link>
      <guid>https://dev.to/hcxshh/the-rule-that-pays-for-a-chinese-workplace-injury-lives-in-four-documents-4iai</guid>
      <description>&lt;p&gt;I spent a morning trying to answer one question: what does an employer in China owe after a workplace injury? The short answer is a State Council regulation with four benefit bands. The longer answer is that three of the numbers people quote are not in that regulation at all, and one of them changes every January.&lt;/p&gt;

&lt;p&gt;This is a note on how the chain fits together, and on the checks that caught my own misreadings.&lt;/p&gt;

&lt;h2&gt;
  
  
  The regulation is the easy part
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://xzfg.moj.gov.cn/front/law/detail?LawID=610" rel="noopener noreferrer"&gt;work injury regulation&lt;/a&gt; (State Council Order 375, rewritten by Order 586 in 2010) is a tidy document. Ten disability grades, a fixed number of months of the worker's wage for each, plus a monthly allowance for the top six. The wage it multiplies is not the salary in the contract: article 64 uses the average monthly &lt;em&gt;contribution&lt;/em&gt; wage over the 12 months before the injury, then clamps it to 300% and 60% of the local average wage.&lt;/p&gt;

&lt;p&gt;That clamp is the first place a hand calculation goes wrong. If a worker earns 30,000 a month in a city whose average wage is 8,000, the benefit is priced at 24,000. If a worker earns 3,500, it is priced at 4,800 — higher than what they actually earned. Both directions are in the same sentence, and the mechanism is contribution-based, so an employer that reported a low base produces a low payout.&lt;/p&gt;

&lt;p&gt;A small function makes the rule testable:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="no"&gt;GRANT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;27&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;23&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;21&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;13&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;11&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="no"&gt;ALLOWANCE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.90&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.85&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.80&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.75&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.70&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.60&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;priced_wage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;last12_avg&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;city_avg&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;lo&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hi&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.6&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;city_avg&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;3.0&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;city_avg&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;last12_avg&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;lo&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hi&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;one_off&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;grade&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;wage&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="no"&gt;GRANT&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;grade&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;wage&lt;/span&gt;

&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;priced_wage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;30_000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;8_000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;24_000&lt;/span&gt;   &lt;span class="c1"&gt;# ceiling&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;priced_wage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3_500&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;8_000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;4_800&lt;/span&gt;     &lt;span class="c1"&gt;# floor&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;one_off&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10_000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;70_000&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;one_off&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10_000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;270_000&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Number one that is not in the regulation: the death grant
&lt;/h2&gt;

&lt;p&gt;Article 39 says a work-related death pays three items. Two of them are computed on figures that have nothing to do with the worker's wage: the burial grant is six months of the local average wage, and the one-off death grant is 20 times the previous year's national urban per-capita disposable income.&lt;/p&gt;

&lt;p&gt;The 20 is in the regulation. The income figure is not. It arrives with the statistics bureau's January release. For deaths in 2026 the number is 56,502 CNY, so the grant is 1,130,040. For 2025 the figure was 54,188 and the grant was 1,083,760.&lt;/p&gt;

&lt;p&gt;Two consequences worth writing down: the death grant is identical in every city, while the burial grant is not, because one uses a national income average and the other a local wage average. And if a death happens in the first weeks of January, before the release, &lt;a href="https://www.gov.cn/gongbao/content/2013/content_2463332.htm" rel="noopener noreferrer"&gt;a 2013 ministry opinion&lt;/a&gt; allows payment on the previous year's figure with a top-up later. A benefit table that hardcodes one year's number is wrong by the next January.&lt;/p&gt;

&lt;p&gt;Checking is cheap here: recompute the prior year, subtract, and see whether the difference matches the published growth rate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Number two: when the 48-hour clock starts
&lt;/h2&gt;

&lt;p&gt;The regulation treats a sudden illness at work that kills within 48 hours as a work injury, and never says when the 48 hours begin. A &lt;a href="https://jshrss.jiangsu.gov.cn/art/2009/11/19/art_77277_9069614.html" rel="noopener noreferrer"&gt;2004 ministry letter&lt;/a&gt; does: from the first diagnosis at a medical institution.&lt;/p&gt;

&lt;p&gt;The interesting part is that this letter predates the 2010 rewrite, and part of it is visibly stale. One item still quotes the old commute clause, which covered motor vehicle accidents; the rewrite replaced it with any accident where the worker is not mainly responsible, across road, rail, ferry and train. So the letter is half-live: its 48-hour reading is still cited by the ministry, while its other items describe text that no longer exists.&lt;/p&gt;

&lt;p&gt;That is the failure mode I keep running into with Chinese administrative law. An interpretive letter stays in force until something repeals it, even when the thing it interprets has been rewritten underneath it. The only reliable check is to read the letter and the current regulation side by side, and to note which items still map onto a live article.&lt;/p&gt;

&lt;h2&gt;
  
  
  Number three: the two subsidies only provinces can price
&lt;/h2&gt;

&lt;p&gt;When the employment ends after a graded injury, two more payments appear: a medical subsidy from the fund and an employment subsidy from the employer. The regulation sets no amounts and hands them to each province.&lt;/p&gt;

&lt;p&gt;Guangdong's &lt;a href="https://dghrss.dg.gov.cn/zcfg/shbz/content/post_3192230.html" rel="noopener noreferrer"&gt;statute&lt;/a&gt; gives grade 5 ten months of medical subsidy and fifty months of employment subsidy, down to grade 10 at one month and four months. At a 10,000 monthly wage, a grade 10 injury adds 50,000 to the 70,000 grant; a grade 5 adds 600,000 to the 180,000.&lt;/p&gt;

&lt;p&gt;So "the compensation for a grade 10 injury" has no national answer. It has a national core plus a provincial tail, and the tail is larger than the core for low grades.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="no"&gt;GD_MED&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="no"&gt;GD_EMP&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;gd_termination&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;grade&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;wage&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="no"&gt;GD_MED&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;grade&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;wage&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;GD_EMP&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;grade&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;wage&lt;/span&gt;

&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;gd_termination&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10_000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;50_000&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;gd_termination&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10_000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;600_000&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What I'd check first next time
&lt;/h2&gt;

&lt;p&gt;Three questions, in this order, for any benefit that looks like a simple multiple:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Is the multiplier applied to the worker's wage, a local average, or a national statistic? Article 39 uses all three in one paragraph.&lt;/li&gt;
&lt;li&gt;Is the base the wage paid or the wage contributed on? In China those diverge, and the benefit follows the contribution.&lt;/li&gt;
&lt;li&gt;Which document actually sets the amount? A regulation that says "the province decides" is a pointer, not an answer.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;None of this is exotic. It is the ordinary work of reading a spec that is split across four files, where one file changes annually and one is older than the file it interprets.&lt;/p&gt;

&lt;p&gt;I wrote the full version, with every article number and source date, at &lt;a href="https://notebookfield.com/posts/work-injury-insurance-in-china/" rel="noopener noreferrer"&gt;notebookfield.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with an AI assistant from my own reading of the primary documents; every clause number and link here was checked against the source.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>law</category>
      <category>python</category>
      <category>testing</category>
      <category>career</category>
    </item>
    <item>
      <title>Turning a Chinese open-ended contract rule into code: four boundary cases</title>
      <dc:creator>hc_xshh</dc:creator>
      <pubDate>Sun, 22 Nov 2026 22:40:02 +0000</pubDate>
      <link>https://dev.to/hcxshh/turning-a-chinese-open-ended-contract-rule-into-code-four-boundary-cases-4gfg</link>
      <guid>https://dev.to/hcxshh/turning-a-chinese-open-ended-contract-rule-into-code-four-boundary-cases-4gfg</guid>
      <description>&lt;p&gt;I spent a day turning a Chinese employment rule into code, and the rule that looked simple turned out to be four boundary conditions wearing a trench coat. The rule: after &lt;strong&gt;two consecutive fixed-term contracts&lt;/strong&gt;, the employee can demand a contract with no end date. Everyone quotes that sentence. Almost nobody quotes the counting rules underneath it.&lt;/p&gt;

&lt;p&gt;Here is the whole thing as a function, plus the four places where my first implementation was wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shape of the rule
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://www.beijing.gov.cn/zhengce/zhengcefagui/qtwj/201307/t20130701_780700.html" rel="noopener noreferrer"&gt;Chinese Labour Contract Law, Article 14(2)&lt;/a&gt;, lists three routes to an open-ended contract:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;ten years of continuous service at one employer;&lt;/li&gt;
&lt;li&gt;ten years of service &lt;em&gt;and&lt;/em&gt; fewer than ten years to retirement, for units that were introducing the contract system for the first time or restructuring;&lt;/li&gt;
&lt;li&gt;two consecutive fixed-term contracts, no disqualifying situation, and a renewal.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Route 3 is the one that gets litigated, so in 2025 the &lt;a href="https://tjfy.tjcourt.gov.cn/article/detail/2025/08/id/8927198.shtml" rel="noopener noreferrer"&gt;Supreme People's Court issued an interpretation&lt;/a&gt; (in force 2025-09-01) that says which arrangements count as that second contract. Four, as it turns out.&lt;/p&gt;

&lt;h2&gt;
  
  
  Boundary 1: "full ten years" is inclusive
&lt;/h2&gt;

&lt;p&gt;The Chinese text says ten years &lt;em&gt;completed&lt;/em&gt; — the character 满. Ten years and zero days qualifies; nine years and 364 days does not. My first draft used &lt;code&gt;years &amp;gt; 10&lt;/code&gt;, which is off by exactly one day and would have been wrong for the most memorable case: the employee who hits ten years on the last day of a contract, which is precisely when the question gets asked.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;ten_year_route&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;renewal_date&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;years&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;renewal_date&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mf"&gt;365.25&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;          &lt;span class="c1"&gt;# 满十年, not &amp;gt; 10&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Boundary 2: the counter starts in 2008, not at hiring
&lt;/h2&gt;

&lt;p&gt;Article 97 of the same law says the count of fixed-term contracts runs from contracts &lt;strong&gt;renewed after&lt;/strong&gt; the law took effect on 2008-01-01. A contract signed in 2006 and renewed in 2009 therefore counts as &lt;em&gt;the first&lt;/em&gt; counted contract, not the second. Count every contract from the hire date and you will tell people they have a right they do not have yet, or miss one they do.&lt;/p&gt;

&lt;p&gt;My first version counted all contracts and produced a wrong answer for anyone hired before 2008. The fix is one filter:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;counted&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;contracts&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;is_renewal&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="nf"&gt;date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2008&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Boundary 3: an 11-month extension is not a contract
&lt;/h2&gt;

&lt;p&gt;This is the part the 2025 interpretation added, and it is where the arithmetic gets sharp. Article 10 says four things count as the second contract:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;negotiated extensions adding up to &lt;strong&gt;one year or more&lt;/strong&gt;, once the extended term expires;&lt;/li&gt;
&lt;li&gt;a contractual auto-renewal clause, once the renewed term expires;&lt;/li&gt;
&lt;li&gt;a swap of the contracting entity where the workplace and post stay the same and management continues;&lt;/li&gt;
&lt;li&gt;other evasions contrary to good faith.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;"One year or more" is inclusive. Two six-month extensions reach twelve months and count. Eleven months does not. A single three-month extension never gets close.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;extension_counts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;months&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;        &lt;span class="c1"&gt;# list of agreed extension lengths&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;months&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;         &lt;span class="c1"&gt;# 一年以上 includes exactly twelve&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This matters because an extension of a fixed-term contract used to be the cheapest way to keep someone on rolling short terms without ever reaching the second contract. The threshold is the fix, and the threshold is also the bug surface: every extension has to be logged with its length, or the counter cannot be computed at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  Boundary 4: partial years round in the employer's direction, then cap
&lt;/h2&gt;

&lt;p&gt;When the refusal happens and money changes hands, the severance base is the average of the last twelve months. Partial service rounds &lt;em&gt;up&lt;/em&gt;: six months or more counts as a full year, under six months as half a month.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;counted_years&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;months&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;months&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="mf"&gt;0.5&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;months&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then the cap: if the monthly wage exceeds three times the local average, the base drops to that three-times figure and the counted years stop at twelve. Fourteen years at a high wage pay as twelve.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;severance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;months&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;wage&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;local_avg&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;counted_years&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;months&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;base&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;wage&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;local_avg&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;wage&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;local_avg&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;base&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;local_avg&lt;/span&gt;
        &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Unlawful termination doubles that number — and the doubled sum replaces severance rather than stacking on it, which is one of those details that changes a total by a factor of two.&lt;/p&gt;

&lt;h2&gt;
  
  
  The sourcing hierarchy is the real lesson
&lt;/h2&gt;

&lt;p&gt;Four documents, four different weights, and mixing them up is how legal writing goes wrong:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;th&gt;How I used it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;statute&lt;/td&gt;
&lt;td&gt;sets the rule&lt;/td&gt;
&lt;td&gt;Article 14, 47, 82, 87, 97&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;State Council regulations&lt;/td&gt;
&lt;td&gt;fills in arithmetic&lt;/td&gt;
&lt;td&gt;the 11-month double-wage window; the 10.5-month rounding&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SPC interpretation (2025)&lt;/td&gt;
&lt;td&gt;says what counts&lt;/td&gt;
&lt;td&gt;the four extension cases; the one-month window after expiry&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SPC commentary&lt;/td&gt;
&lt;td&gt;explains intent&lt;/td&gt;
&lt;td&gt;"the employer no longer has a choice" — not binding text&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That last row is the trap. The sentence everyone repeats — after two contracts the employer has no choice about renewing — appears in the court's published commentary, not in the interpretation's articles. It is the clearest statement of how the clause is read, and it is still commentary. I quoted it on the site and labelled it as commentary. A programmer would call this a comment that explains the intent of code you cannot change.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two more things that cost me time
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Formally repealed versus superseded.&lt;/strong&gt; The 2025 interpretation's final article repeals one paragraph of the 2020 interpretation by number, then adds a catch-all: earlier interpretations yield where they conflict. The 2020 Article 34 — the one that let either side walk away when a contract expired and work continued — is not named. The commentary says it is abolished all the same. So the honest sentence is "abolished in effect, not by citation", and that is the sentence I published.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Court servers do not like scripts.&lt;/strong&gt; One court portal returned HTTP 449 through my proxy and 200 on a direct connection two minutes later. A 449 is not a dead link and not a 404; it means the WAF wants a different client. Treating it as "source gone" would have deleted a source that a browser opens fine.&lt;/p&gt;

&lt;h2&gt;
  
  
  The case that keeps the rule honest
&lt;/h2&gt;

&lt;p&gt;Among the &lt;a href="https://www.court.gov.cn/zixun/xiangqing/472681.html" rel="noopener noreferrer"&gt;cases released with the interpretation&lt;/a&gt; there is one where an employee on a five-year contract refused repeated requests to renew, said he could claim double wages if there was no contract, and then claimed exactly that. The court refused: the double-wage rule does not protect the party who engineers the omission.&lt;/p&gt;

&lt;p&gt;That case is why the function above cannot be the whole answer. Every boundary I encoded assumes a good-faith timeline. The moment one side manufactures the gap, the arithmetic stops being the point.&lt;/p&gt;

&lt;p&gt;I wrote the long version — clause by clause, with the four counting rules, the cost table and the disagreements between the texts — at &lt;a href="https://notebookfield.com/posts/china-open-ended-contract/" rel="noopener noreferrer"&gt;China's open-ended contract: ten years, or two renewals&lt;/a&gt;. The functions above are the same assertions I used to check my own arithmetic before publishing.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with an AI assistant from my own reading of the primary documents; every clause number and link here was checked against the source.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>career</category>
      <category>law</category>
      <category>testing</category>
      <category>python</category>
    </item>
    <item>
      <title>Reading China's probation rules as a spec: a ladder, an 80% floor, and one ambiguous 'or'</title>
      <dc:creator>hc_xshh</dc:creator>
      <pubDate>Sat, 21 Nov 2026 22:35:32 +0000</pubDate>
      <link>https://dev.to/hcxshh/reading-chinas-probation-rules-as-a-spec-a-ladder-an-80-floor-and-one-ambiguous-or-3ki5</link>
      <guid>https://dev.to/hcxshh/reading-chinas-probation-rules-as-a-spec-a-ladder-an-80-floor-and-one-ambiguous-or-3ki5</guid>
      <description>&lt;p&gt;I spent a morning turning one employment-law clause into something a script can check, and the interesting part was not the code. It was that a single word in the statute — "or" — makes one of the two wage floors unverifiable from the text alone.&lt;/p&gt;

&lt;p&gt;The subject is probation in a Chinese employment contract. The rules live in four documents: the Labour Contract Law, its 2008 implementing rules, a 2020 Supreme People's Court interpretation, and a 1996 set of rules for foreign employees. The clause I cared about sets how long a probation may run. It is a ladder keyed to the contract term, and the ladder is the part a contract-checker can automate.&lt;/p&gt;

&lt;h2&gt;
  
  
  The ladder, as the statute writes it
&lt;/h2&gt;

&lt;p&gt;Four bands, in Article 19:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Contract term&lt;/th&gt;
&lt;th&gt;Longest probation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;under three months, or a contract for a specific task&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;three months up to one year&lt;/td&gt;
&lt;td&gt;one month&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;one year up to three years&lt;/td&gt;
&lt;td&gt;two months&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;three years or more, or open-ended&lt;/td&gt;
&lt;td&gt;six months&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The boundaries are written in Chinese range notation: "three months and above but under one year", "one year and above but under three years", and so on. The word 以上 includes the boundary and 不满 excludes it. So a contract of exactly twelve months sits in the two-month band, and one of exactly thirty-six months sits in the six-month band. A parser that reads these as plain inequalities gets both boundaries wrong.&lt;/p&gt;

&lt;p&gt;That is the whole reason I wrote a function instead of a checklist: the off-by-one sits exactly where people read fastest.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;max_probation_months&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;contract_months&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;task_based&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;bool&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"""Article 19 caps, with the Chinese range wording made explicit."""&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;task_based&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;contract_months&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;contract_months&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;          &lt;span class="c1"&gt;# three months and above, under one year&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;contract_months&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;36&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;          &lt;span class="c1"&gt;# one year and above, under three years&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;              &lt;span class="c1"&gt;# three years and above, or open-ended&lt;/span&gt;

&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;max_probation_months&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;max_probation_months&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;max_probation_months&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;11&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;max_probation_months&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;max_probation_months&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;35&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;max_probation_months&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;36&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;max_probation_months&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;task_based&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two more rules from the same article are cheap to check and easy to miss. A probation is counted inside the contract term, so a two-year contract with two months of probation still ends at month twenty-four. And a contract that states only a probation term is not a probation at all: the stated period becomes the contract term.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part a script cannot check
&lt;/h2&gt;

&lt;p&gt;Article 20 sets the pay floor during probation: not below 80% of the lowest wage for the same post in the unit, or 80% of the wage agreed in the contract, and never below the local minimum wage. The implementing rules repeat the sentence almost verbatim.&lt;/p&gt;

&lt;p&gt;The "or" is doing a lot of work. If the two reference wages differ — say a contract wage of 10,000 and a same-post lowest tier of 9,000 — the text does not say whether the floor is 7,200, 8,000, or the higher of the two. Practice is said to take the higher, which would be 8,000 here, but I found no national document that resolves it. Writing a checker that silently picks one is worse than writing one that refuses and prints both.&lt;/p&gt;

&lt;p&gt;So the function returns both, and the caller decides:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;probation_wage_floors&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;contract_wage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;same_post_lowest&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                          &lt;span class="n"&gt;local_minimum&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"pct_of_contract"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.8&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;contract_wage&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"pct_of_post"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.8&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;same_post_lowest&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"local_minimum"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;local_minimum&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="c1"&gt;# absolute floor, always applies&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The minimum wage is the only unambiguous floor in that dictionary. It is set by province and moves on its own schedule, which is why the function takes it as an input rather than looking it up.&lt;/p&gt;

&lt;h2&gt;
  
  
  What an over-long probation costs
&lt;/h2&gt;

&lt;p&gt;Article 83 is the reason the ladder matters in practice. Where the agreed probation exceeded the cap and was actually served, the employer pays compensation for the months served beyond the cap, measured at the monthly wage that applies after probation ends.&lt;/p&gt;

&lt;p&gt;Two details there are easy to skim past. The measure is the post-probation wage, not the probation wage, so a large step-up at the end inflates the compensation. And the base is the excess months only, not the whole probation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;excess_months&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;contract_months&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;probation_months&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="n"&gt;months_served&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;cap&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;max_probation_months&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;contract_months&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;served_in_probation&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;probation_months&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;months_served&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;served_in_probation&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;cap&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;excess_months&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;   &lt;span class="c1"&gt;# 1-year contract, 3-month probation served&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;excess_months&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;24&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;   &lt;span class="c1"&gt;# left after 5 of 6 months&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;excess_months&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;    &lt;span class="c1"&gt;# 7-month contract, 1-month cap&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The compensation is a separate payment from wages. The months worked are paid anyway; Article 83 adds the excess months again at the post-probation rate. It is not a refund, and it does not void the contract.&lt;/p&gt;

&lt;h2&gt;
  
  
  Probation does not buy a cheaper exit for incompetence
&lt;/h2&gt;

&lt;p&gt;Article 21 limits termination during probation to two grounds: Article 39 and the first two items of Article 40. Agreement and resignation are separate routes and are not covered by that limit.&lt;/p&gt;

&lt;p&gt;The distinction costs money. Termination for "not meeting the recruitment conditions" sits in Article 39 and carries no severance. Termination for incompetence after training sits in Article 40(2), which requires thirty days' notice or one month's wage in lieu, plus severance. An employer who treats probation as a discount on dismissal is reading the wrong article.&lt;/p&gt;

&lt;p&gt;One procedural asymmetry is worth knowing: where a dismissal is challenged, the employer carries the burden of proof. That is Article 44 of the 2020 interpretation, and it applies to the "not meeting conditions" ground like any other.&lt;/p&gt;

&lt;h2&gt;
  
  
  The negative check that took the longest
&lt;/h2&gt;

&lt;p&gt;The rule says a probation may be agreed only once between one employer and one worker. I read the article looking for a time limit — a window after which a rehire could carry a new probation — and found none. The restriction is stated without a condition, so a script can treat "has this employer and worker agreed a probation before" as a permanent flag.&lt;/p&gt;

&lt;p&gt;That said, I could not verify the edge cases: a transfer to an affiliate, a worker who returns a decade later, a probation extended by agreement within the cap. None of those is addressed in the four texts, and I did not read local court practice.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this is and is not
&lt;/h2&gt;

&lt;p&gt;This is a reading of primary texts, not legal advice. Every article number above was read in the source document rather than taken from a summary, and the arithmetic is mine with assumed wages. The open items — the "or" in Article 20, the extension question, the affiliate question, whether compensation needs a labour-authority order before arbitration — are written out on the site version of this piece, which is the canonical copy:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://notebookfield.com/posts/china-probation-period/" rel="noopener noreferrer"&gt;Probation in China: six-month caps and an 80% pay floor&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you are checking a contract rather than writing a parser, the ladder plus the excess-month formula covers the part the text settles. The rest needs a lawyer who reads local practice, which is exactly the part I left unfilled.&lt;/p&gt;

&lt;p&gt;Sources, all read on 2026-11-22:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://www.beijing.gov.cn/zhengce/zhengcefagui/qtwj/201307/t20130701_780700.html" rel="noopener noreferrer"&gt;Labour Contract Law&lt;/a&gt;, amended 2012 text&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.gov.cn/zwgk/2008-09/19/content_1099470.htm" rel="noopener noreferrer"&gt;Implementing Rules, State Council Order 535&lt;/a&gt;, in force 2008-09-18&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.court.gov.cn/zixun/xiangqing/282121.html" rel="noopener noreferrer"&gt;Supreme People's Court Interpretation (I)&lt;/a&gt;, in force 2021-01-01&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.nia.gov.cn/n741440/n741547/c1295867/content.html" rel="noopener noreferrer"&gt;Rules on foreigners' employment&lt;/a&gt;, 1996&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Drafted with an AI assistant from my own reading of the primary documents; every clause number and link here was checked against the source.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;Read next, on the same four documents:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://notebookfield.com/posts/china-severance-pay/" rel="noopener noreferrer"&gt;Severance in China: what N, N+1 and 2N actually pay&lt;/a&gt; — the exit arithmetic that follows a probation dismissal.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://notebookfield.com/posts/china-annual-leave-days/" rel="noopener noreferrer"&gt;Annual leave in China: 5, 10 or 15 days&lt;/a&gt; — the other labour-law ladder keyed to years of service.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>career</category>
      <category>law</category>
      <category>productivity</category>
      <category>beginners</category>
    </item>
    <item>
      <title>The phrase everyone uses for China's severance pay appears in none of the four documents</title>
      <dc:creator>hc_xshh</dc:creator>
      <pubDate>Fri, 20 Nov 2026 22:37:49 +0000</pubDate>
      <link>https://dev.to/hcxshh/the-phrase-everyone-uses-for-chinas-severance-pay-appears-in-none-of-the-four-documents-d0g</link>
      <guid>https://dev.to/hcxshh/the-phrase-everyone-uses-for-chinas-severance-pay-appears-in-none-of-the-four-documents-d0g</guid>
      <description>&lt;p&gt;A reader asked me to explain China's severance pay, and the question arrived in the shorthand everyone uses: "is it N or N+1?" So I did what I usually do before writing anything — I downloaded the four documents that could possibly govern the answer and searched them for the term.&lt;/p&gt;

&lt;p&gt;The term is not there. Neither the Labour Contract Law nor its 2008 implementing rules contain the string "N+1", and the Chinese phrase that people translate as "notice payment" appears zero times in both. I checked with a one-liner rather than by reading and hoping I would notice:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"labour-contract-law.txt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"implementing-rules.txt"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;encoding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"utf-8"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;needle&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"N+1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"N + 1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"notice payment"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;needle&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;count&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;needle&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Zero across the board. That result did not mean the payment is imaginary; it meant the payment has a different name and a different trigger, and anyone who learns the rule through the shorthand inherits the confusion built into it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the shorthand compresses
&lt;/h2&gt;

&lt;p&gt;Three separate things get folded into "N, N+1, 2N":&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Severance.&lt;/strong&gt; One month's wage per full year of service, with a leftover of six months or more rounded up to a year and anything shorter paid at half a month. The base is the average wage over the twelve months before the exit, taken gross, including bonuses and allowances.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A notice payment.&lt;/strong&gt; One extra month's wage, paid &lt;em&gt;instead of&lt;/em&gt; the thirty days' notice that three specific grounds require: medical incapacity, incompetence that survives retraining, and a material change in circumstances. It is not extra severance for every exit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Damages for an unlawful dismissal.&lt;/strong&gt; Twice the severance standard, under a different article, and it does not stack with severance.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The three have different conditions, different amounts and different names. Only the first one is severance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two places where a summary would have misled me
&lt;/h2&gt;

&lt;h3&gt;
  
  
  The "+1" is not a second month of severance
&lt;/h3&gt;

&lt;p&gt;The implementary rules fix its amount by a different measure from severance: the wage in the &lt;strong&gt;last month before the exit&lt;/strong&gt;, not the twelve-month average. So the +1 and the N beside it are computed on different bases, and either can be bigger. A summary that says "one month's salary per year plus one month's salary" quietly assumes those two numbers are the same, which they are only when pay has been flat for a year.&lt;/p&gt;

&lt;h3&gt;
  
  
  Service before 2008 runs on a different clock
&lt;/h3&gt;

&lt;p&gt;The law took effect on 1 January 2008, and its transitional article says that for contracts already running on that date, severance years count &lt;strong&gt;from&lt;/strong&gt; that date — earlier service follows whatever rules applied then. For anyone hired afterwards this never comes up, which is exactly why it gets dropped from summaries: the people writing them were hired afterwards.&lt;/p&gt;

&lt;h2&gt;
  
  
  The cap has a shape worth reading carefully
&lt;/h2&gt;

&lt;p&gt;One sentence carries both limits: above three times the city's published average wage for the previous year, the base is fixed at that three-times figure &lt;strong&gt;and&lt;/strong&gt; the years are capped at twelve. Both limits live in the same sentence, so the twelve-year ceiling belongs to the high-wage case. If you flatten that into "severance is capped at 12 months", you have moved a rule about high earners onto everyone.&lt;/p&gt;

&lt;p&gt;I built the arithmetic as an assertion rather than a table in prose, so a reader can change one number and see the whole thing recompute:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;severance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;months&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;monthly&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;city_avg&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="c1"&gt;# round at the six-month line&lt;/span&gt;
    &lt;span class="n"&gt;counted&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;months&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="mf"&gt;0.5&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;months&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;base&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;monthly&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;city_avg&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;monthly&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;city_avg&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;counted&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;counted&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;counted&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt;

&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;severance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12_000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;9_000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;48_000&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;severance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12_000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;9_000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;30_000&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;severance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;14&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30_000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;9_000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;324_000&lt;/span&gt;   &lt;span class="c1"&gt;# 27,000 x 12, not 420,000&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"ok"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three assertions, and the third is the one that shows what the cap does: fourteen years at 30,000 is 420,000 uncapped and 324,000 capped, because both the base and the year count are cut.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I could not settle from the documents
&lt;/h2&gt;

&lt;p&gt;The national texts do not fix the city average — each city publishes its own, annually — so no example can be more than arithmetic on an assumed figure. The implementing rules list bonuses, allowances and subsidies in the base and say nothing about overtime, and local rules differ on whether overtime belongs there. I read none of those local rules, so I wrote the gap into the article instead of picking a side.&lt;/p&gt;

&lt;p&gt;That is the part of this workflow I would recommend to anyone writing about another country's rules: the negative check is cheap, and it tells you which of the words in the question are load-bearing.&lt;/p&gt;

&lt;p&gt;The full write-up — the table of seven endings that pay and four that do not, the worked amounts and every article number cited — is here: &lt;a href="https://notebookfield.com/posts/china-severance-pay/" rel="noopener noreferrer"&gt;Severance in China: what N, N+1 and 2N actually pay&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Drafted with an AI assistant from my own reading of the primary documents; every clause number and link here was checked against the source.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>career</category>
      <category>law</category>
      <category>python</category>
      <category>productivity</category>
    </item>
    <item>
      <title>A 2009 ministry letter answers two annual-leave questions the 2008 rule left open</title>
      <dc:creator>hc_xshh</dc:creator>
      <pubDate>Thu, 19 Nov 2026 23:42:34 +0000</pubDate>
      <link>https://dev.to/hcxshh/a-2009-ministry-letter-answers-two-annual-leave-questions-the-2008-rule-left-open-25on</link>
      <guid>https://dev.to/hcxshh/a-2009-ministry-letter-answers-two-annual-leave-questions-the-2008-rule-left-open-25on</guid>
      <description>&lt;p&gt;I spent a day on China's paid annual leave rules, and the interesting part was not the day counts. It was that two of the questions people actually argue about are not answered in the regulation at all. They are answered in a 2009 letter from a ministry's general office, and restated in a city bureau's reply to a resident published last November.&lt;/p&gt;

&lt;p&gt;The site version of this is here: &lt;a href="https://notebookfield.com/posts/china-annual-leave-days/" rel="noopener noreferrer"&gt;China annual leave: 5, 10 or 15 days, and the 12-month gate&lt;/a&gt;. This post is about the stack of documents and the three places where a careful reading beats the summary everyone repeats.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack, in order of authority
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Document&lt;/th&gt;
&lt;th&gt;Year&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Regulation&lt;/td&gt;
&lt;td&gt;State Council Order No. 514, in force 1 January 2008&lt;/td&gt;
&lt;td&gt;2007&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Implementing rules&lt;/td&gt;
&lt;td&gt;Ministry of Human Resources and Social Security Order No. 1&lt;/td&gt;
&lt;td&gt;2008&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Interpretation&lt;/td&gt;
&lt;td&gt;General office letter, Ren She Ting Han [2009] No. 149&lt;/td&gt;
&lt;td&gt;2009&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Local answer&lt;/td&gt;
&lt;td&gt;A city human resources bureau reply to a resident question&lt;/td&gt;
&lt;td&gt;2025&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The regulation gives three bands: 5 working days for 1 to under 10 years of cumulative work, 10 for 10 to under 20, 15 from 20. Public holidays and weekly rest days sit outside the count. Everything else that matters is in the lower layers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trap 1: "continuous 12 months" does not mean the 12 months before this job
&lt;/h2&gt;

&lt;p&gt;Article 2 of the regulation grants leave to an employee who has worked continuously for a year. Every summary I read online turns that into "you must work 12 months at your current employer before you get any leave", which is not what the text says and not what the ministry letter says.&lt;/p&gt;

&lt;p&gt;The letter settles it: the 12 continuous months can be at the same employer or across different employers. In practice the test is whether the person has ever had a continuous 12-month stretch of work. A hire with eight years of service behind them qualifies in week one. A fresh graduate does not qualify until 12 unbroken months have passed, and then gets a fraction of the year, not the full entitlement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trap 2: pro-rata applies to changing employer, not to changing band
&lt;/h2&gt;

&lt;p&gt;The implementing rules pro-rate the first year: days left in the calendar year, divided by 365, times the full-year entitlement, part-days dropped. I assumed the same logic applied when someone's cumulative service crosses 10 years in July: five days before the anniversary, ten after.&lt;/p&gt;

&lt;p&gt;The city answer published in November 2025 says otherwise. Crossing a band mid-year is settled at the higher number for the whole year. That answer is one bureau's, not a sentence in the regulation, so I flagged it as such rather than presenting it as national law. But it is the only written official answer I could find, and it runs against the intuitive reading.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trap 3: the 300% is not a bonus on top of your wage
&lt;/h2&gt;

&lt;p&gt;Unused leave is paid at 300% of the daily wage, and the text says that figure includes the normal wage for the day. So the premium is 200%, and two thirds of the payment is compensation while one third is wages the employee would have received anyway.&lt;/p&gt;

&lt;p&gt;The base has two reductions people miss: it is the average monthly wage of the previous 12 months, and overtime pay is stripped out before dividing by 21.75. That 21.75 is a national figure from a 2008 notice, calculated as (365 − 104) ÷ 12.&lt;/p&gt;

&lt;h2&gt;
  
  
  The arithmetic, as assertions
&lt;/h2&gt;

&lt;p&gt;I write these checks as assertions so the numbers in the article cannot drift from the formulas:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;date&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;entitlement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;pro_rata_join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;days_left&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;31&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;floor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;days_left&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;365&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nf"&gt;entitlement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# 1 July 2026: 184 days left, so 2 / 5 / 7 depending on the band&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;pro_rata_join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2026&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2026&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;pro_rata_join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2026&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2026&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;pro_rata_join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2026&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2026&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;

&lt;span class="c1"&gt;# 1 December 2026: 31 days left, and the 15-day band still rounds to 1&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;pro_rata_join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2026&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2026&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;pro_rata_join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2026&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2026&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;unused_pay&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;monthly&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;days&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;daily&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;monthly&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mf"&gt;21.75&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;daily&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;daily&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;unused_pay&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;12000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;8275.86&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;5517.24&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;unused_pay&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;12000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;24827.59&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;16551.72&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;on_leaving&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;end&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;taken&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;elapsed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;end&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;floor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;elapsed&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;365&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nf"&gt;entitlement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;taken&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;on_leaving&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2026&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2026&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The 1 July row is the one I would have got wrong by hand: 184 ÷ 365 × 5 is 2.52, and the fraction is not carried. The three bands produce 2, 5 and 7 on the same start date, not 2.5, 5 and 7.5.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the reading cost
&lt;/h2&gt;

&lt;p&gt;About three hours, of which perhaps forty minutes was finding the letter. The ministry's own copy did not surface in search; the full text was reproduced by a provincial human resources department on a 2009 page. That is a pattern worth naming: when an interpretive letter is old, the best copy is often on a province's site, not the ministry's.&lt;/p&gt;

&lt;p&gt;The 2025 answers were easier, and more useful than expected, because they answer the two questions the regulation leaves blank. They also show the shape of Chinese rule-following: the statute sets numbers, the ministry sets mechanics, and the city bureau answers what the clerk at the counter actually asks.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I could not settle
&lt;/h2&gt;

&lt;p&gt;Whether work for a foreign employer before arriving counts toward cumulative service. The 2009 letter lists Chinese employer types and periods counted under Chinese law, and does not name foreign employers. Whether the mid-year band rule holds outside the one city that answered. And whether unused days survive past the year without written consent, where the rules require consent but do not say what happens without it.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with an AI assistant from my own reading of the primary documents; every clause number and link here was checked against the source.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>china</category>
      <category>career</category>
      <category>law</category>
      <category>python</category>
    </item>
    <item>
      <title>I traced one marriage requirement through four Chinese documents — the lists disagreed</title>
      <dc:creator>hc_xshh</dc:creator>
      <pubDate>Wed, 18 Nov 2026 22:53:18 +0000</pubDate>
      <link>https://dev.to/hcxshh/i-traced-one-marriage-requirement-through-four-chinese-documents-the-lists-disagreed-2ae4</link>
      <guid>https://dev.to/hcxshh/i-traced-one-marriage-requirement-through-four-chinese-documents-the-lists-disagreed-2ae4</guid>
      <description>&lt;h1&gt;
  
  
  Tracing one marriage requirement through four Chinese documents — the lists disagreed
&lt;/h1&gt;

&lt;p&gt;My site publishes what the rule &lt;em&gt;says&lt;/em&gt;. This is the meta version: what happened when I tried to verify one marriage-registration requirement end to end, and where the official texts stopped agreeing with each other.&lt;/p&gt;

&lt;p&gt;The question was narrow. What papers does a foreign national need to marry a Chinese citizen at a mainland registry, and are they still the papers the 2025 rules describe?&lt;/p&gt;

&lt;p&gt;The answer lives in four documents, not one:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The &lt;strong&gt;Marriage Registration Regulation&lt;/strong&gt;, State Council Order No. 804, revised 6 April 2025, in force 10 May 2025.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;Marriage Registration Work Standard&lt;/strong&gt;, 民发〔2025〕23号, issued by the Ministry of Civil Affairs on 29 April 2025, effective the same day.&lt;/li&gt;
&lt;li&gt;A 2024 ministry &lt;strong&gt;notice on the apostille&lt;/strong&gt;, 民办发〔2024〕7号, dated 9 April 2024.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;125-name country annex&lt;/strong&gt; attached to that notice.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Three things bit me, and each one is the kind of thing a summary of the rule would smooth over.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The 2025 texts still say "legalised"
&lt;/h2&gt;

&lt;p&gt;Both 2025 documents require the foreigner's certificate of no spouse to be "authenticated" (认证) by a Chinese embassy or the home country's embassy — a consular-legalisation step that China &lt;strong&gt;stopped requiring from treaty partners on 7 November 2023&lt;/strong&gt;, when the Apostille Convention entered into force for it.&lt;/p&gt;

&lt;p&gt;The regulation was revised six months &lt;em&gt;after&lt;/em&gt; the apostille came in, and it kept the old wording. The fix is carried entirely by the treaty clause: both texts end the document list with "where an international treaty China has concluded provides otherwise, the treaty procedure applies."&lt;/p&gt;

&lt;p&gt;The operational rule is in the 2024 notice, which is still in force and predates the 2025 revision. For a national of a contracting state it says: passport, certificate of no spouse, apostille, and a Chinese translation. The notice even walks a registry through verifying a doubtful apostille — compare it against the issuing country's specimen, query their database, and if the issuing authority hasn't answered in 10 working days, escalate to the Foreign Ministry's consular department.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The country list is five parties short
&lt;/h2&gt;

&lt;p&gt;The 2024 notice's annex lists 125 contracting parties with a cut-off of 15 November 2023. The Hague Conference's status table now counts &lt;strong&gt;130&lt;/strong&gt;, last updated 30 June 2026.&lt;/p&gt;

&lt;p&gt;The arithmetic that matters at a counter:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;parties&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;130&lt;/span&gt;       &lt;span class="c1"&gt;# HCCH status table, 2026-06-30&lt;/span&gt;
&lt;span class="n"&gt;not_yet&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;         &lt;span class="c1"&gt;# Thailand — in force 2027-02-28&lt;/span&gt;
&lt;span class="n"&gt;china&lt;/span&gt;   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="n"&gt;india&lt;/span&gt;   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;         &lt;span class="c1"&gt;# objected to China's accession&lt;/span&gt;
&lt;span class="n"&gt;partners_in_force&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;parties&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;not_yet&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;china&lt;/span&gt;   &lt;span class="c1"&gt;# 128&lt;/span&gt;
&lt;span class="n"&gt;usable&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;partners_in_force&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;india&lt;/span&gt;              &lt;span class="c1"&gt;# 127&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;usable&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                                   &lt;span class="c1"&gt;# 127&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Four of the later joiners weren't on the 2023 list at all: Canada (11 Jan 2024), Bangladesh (30 Mar 2025), Algeria (9 Jul 2026) and Viet Nam (11 Sep 2026). Rwanda was already listed with a footnote giving its 5 June 2024 start.&lt;/p&gt;

&lt;p&gt;India is the trap printed inside the annex itself: India objected to China's accession, so the Convention does not operate between the two countries. The same annex notes Pakistan still issues consular legalisation. If your certificate is Indian or Pakistani, "apostille" is the wrong answer and the 125-name list is not where you'd notice it.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Two 2025 texts disagree on which certificates a divorce counter accepts
&lt;/h2&gt;

&lt;p&gt;Article 14 of the regulation refuses a divorce application when the marriage was &lt;strong&gt;not registered in mainland China&lt;/strong&gt;. Article 47 of the work standard — issued on the same day — accepts a marriage certificate issued by a &lt;strong&gt;Chinese embassy or consulate abroad&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;A couple married at a Chinese consulate reads one text as eligible and the other as not. The regulation outranks the work standard, but the work standard is the checklist the counter staff actually follow. The honest statement is "the texts conflict, and the practical answer differs by province" — not a rule, a gap.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two traps that are pure arithmetic
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A foreign-language document filed &lt;strong&gt;without a Chinese translation is treated as not filed&lt;/strong&gt; (work standard, art. 88). A translation from a qualified agency is accepted.&lt;/li&gt;
&lt;li&gt;A certificate of no spouse is valid &lt;strong&gt;six months from issuance&lt;/strong&gt; (art. 86). The clock starts when it's issued, not when you walk in.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And the divorce waiting period is 30 + 30: any party may withdraw in the first 30 days (counted from the day after the application); if nobody does, both must return within the following 30 days to collect the certificate, or the application is deemed withdrawn. An application filed 1 June 2027 opens a withdrawal window 2 June–1 July and a collection window 2–31 July.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I could not verify
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Whether every provincial office accepts an apostille without also asking for legalisation. The notice is the instruction; there's no published national list of counter practices.&lt;/li&gt;
&lt;li&gt;Whether any province makes the 10-working-day online pre-review mandatory (the notice says "encouraged").&lt;/li&gt;
&lt;li&gt;Whether a newer version of the 125-name annex exists — the ministry's newer document-library pages are JavaScript-rendered and I couldn't search them.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The full rule-by-rule version, with article numbers and links to every text, is on my site: &lt;a href="https://notebookfield.com/posts/marrying-a-chinese-citizen-documents/" rel="noopener noreferrer"&gt;Marrying a Chinese citizen: four documents, one stale word&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with an AI assistant from my own reading of the primary documents; every clause number and link here was checked against the source.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>china</category>
      <category>expat</category>
      <category>legal</category>
      <category>documentation</category>
    </item>
    <item>
      <title>The fine for overstaying a Chinese visa is in the statute. The day counts are in a five-year-old Q&amp;A reply.</title>
      <dc:creator>hc_xshh</dc:creator>
      <pubDate>Tue, 17 Nov 2026 22:45:00 +0000</pubDate>
      <link>https://dev.to/hcxshh/the-fine-for-overstaying-a-chinese-visa-is-in-the-statute-the-day-counts-are-in-a-five-year-old-29dj</link>
      <guid>https://dev.to/hcxshh/the-fine-for-overstaying-a-chinese-visa-is-in-the-statute-the-day-counts-are-in-a-five-year-old-29dj</guid>
      <description>&lt;p&gt;Last week I wanted a single question answered: if a 30-day Chinese tourist visa was used on 31 December, what is the last legal day in the country? The obvious answer, "31 December", is wrong. The correct one is 30 January, and finding out why took four documents, one of which is a 2021 reply to a stranger's question on a government website.&lt;/p&gt;

&lt;p&gt;This is a write-up of the search, because the shape of it repeats: the statute gives a number, the regulation gives a definition, and the actual grading sits one layer further down, where no one looks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Layer 1: the statute gives the outer penalty
&lt;/h2&gt;

&lt;p&gt;The Exit and Entry Administration Law (in force since July 2013) says this about overstaying, in &lt;a href="https://www.nia.gov.cn/n741440/n741547/c1013311/content.html" rel="noopener noreferrer"&gt;article 78&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A foreigner who illegally resides shall be given a warning; where the circumstances are serious, a fine of 500 yuan per day of illegal residence, with the total not exceeding 10,000 yuan, or detention of not less than five days and not more than fifteen days.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Two things are missing from that sentence. It does not define what counts as a day of illegal residence, and it does not say when "the circumstances are serious". Both matter: the difference between a warning and detention is the difference between a stamp in a passport and a stay in a cell.&lt;/p&gt;

&lt;h2&gt;
  
  
  Layer 2: the regulation defines the clock, in the wrong place
&lt;/h2&gt;

&lt;p&gt;The State Council regulation underneath the law (&lt;a href="https://www.gov.cn/zhengce/content/202508/content_7036507.htm" rel="noopener noreferrer"&gt;Order No. 637 of 2013, revised in 2025 by Order No. 814&lt;/a&gt;) contains the counting rule. It is not in the chapter on stay management. It is in article 36, the definitions article at the very end:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The stay period stated in the visa means the time the holder is permitted to stay after each entry, counted from the day after entry.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That one clause produced the 30 January answer. Entry on 31 December means day one is 1 January, and thirty days from there is 30 January. The arrival day is not a day of your stay. Nothing in the visa sticker says this.&lt;/p&gt;

&lt;p&gt;The same article also settles a second trap. Article 13 gives the police counter a receipt "valid for no more than 7 days", which reads as a calendar week. The last paragraph of article 36 says every approval period and receipt period in the regulation is counted in working days, excluding public holidays. A seven-day receipt is therefore up to nine or ten calendar days around a holiday.&lt;/p&gt;

&lt;h2&gt;
  
  
  Layer 3: the tiers are in a Q&amp;amp;A reply
&lt;/h2&gt;

&lt;p&gt;Article 78 sets 500 yuan per day, capped at 10,000 yuan, for "serious" cases. The National Immigration Administration's &lt;a href="https://www.nia.gov.cn/Enquiry/publish/showQuestion.jsp?MZ=k0dulDWvsciKR0MEQHY4DA%3D%3D" rel="noopener noreferrer"&gt;published answer to a 2021 question&lt;/a&gt; fills in the tiers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;10 days or less past the visa: warning.&lt;/li&gt;
&lt;li&gt;10 to 60 days past the visa: 500 yuan per day, &lt;strong&gt;counted from day 11&lt;/strong&gt;, capped at 10,000 yuan, or five days' detention.&lt;/li&gt;
&lt;li&gt;60 days or more, or a repeat overstay of 20 days or more: 10,000 yuan, or five to fifteen days' detention.&lt;/li&gt;
&lt;li&gt;A visa-free overstay of up to 20 days: 500 yuan per day, with no grace period mentioned.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The "counted from day 11" parenthetical is doing a lot of work. It means a 12-day overstay costs 500 yuan, not 6,000. It also means the cap arrives at day 30, and every day from 31 to 60 is free at the margin, because the total cannot exceed 10,000 yuan.&lt;/p&gt;

&lt;p&gt;I found no other official document that prints those brackets. The statute does not, the regulation does not, and the city-level service guides I read only reproduce the statute's sentence.&lt;/p&gt;

&lt;h2&gt;
  
  
  The code I used to check my own arithmetic
&lt;/h2&gt;

&lt;p&gt;Dates and money are where I make mistakes, so I wrote both calculations as assertions rather than trusting a mental count:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;date&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timedelta&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;last_legal_day&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;date&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stay_days&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;date&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="c1"&gt;# art. 36(3): the stay is counted from the day after entry&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;entry&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nf"&gt;timedelta&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;days&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;stay_days&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;overstay_fine&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;days&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;visa_free&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;bool&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;tuple&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"""Published grading: returns (fine, sanction)."""&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;visa_free&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"warning"&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;visa_free&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10_000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"fine or 5 days detention"&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;10_000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"10,000 or 5-15 days detention"&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;days&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10_000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"fine or 5 days detention"&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;10_000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"10,000 or 5-15 days detention"&lt;/span&gt;

&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;last_legal_day&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2026&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;31&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="nf"&gt;date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2027&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;overstay_fine&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"warning"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;overstay_fine&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;11&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;overstay_fine&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;10_000&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;overstay_fine&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;45&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;10_000&lt;/span&gt;          &lt;span class="c1"&gt;# cap, not 17,500&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;overstay_fine&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;visa_free&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;10_000&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The last two asserts are where the published text and intuition part company. In the visa band the fine is capped from day one, so 20 days hits the ceiling. In the visa-free band there is no ten-day grace written in, so the ceiling arrives earlier.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the documents could not answer
&lt;/h2&gt;

&lt;p&gt;Three questions stayed open, and I left them open in the write-up rather than filling them with a plausible guess:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Applying late.&lt;/strong&gt; The law says apply at least seven days before the stay ends. It does not say what a counter does with an application filed with three days left.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Whether the ceilings are granted.&lt;/strong&gt; The service guide lists a maximum extension per visa category, 30 days for tourist visas and 180 for several business and family categories. Nothing published says how often the maximum is granted.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How the grading lands in practice.&lt;/strong&gt; No public statistics on warnings, fines and detention exist, so the tiers describe a standard, not outcomes.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What I would tell the next person doing this
&lt;/h2&gt;

&lt;p&gt;Read the definitions article first. In Chinese administrative texts the definitions sit at the end of the regulation, and they carry the rules that change the arithmetic: what a day is, which days count, whether "7 days" means working days. The operative articles assume you have already read them.&lt;/p&gt;

&lt;p&gt;Also check the revision date before citing an article number. The regulation was revised in 2025, and the 2025 amendment added one visa category and renumbered items. A blog post citing the 2013 numbering will look right and be wrong.&lt;/p&gt;

&lt;p&gt;The full write-up, with the tables and the article-by-article citations, is at &lt;a href="https://notebookfield.com/posts/china-visa-stay-clock-and-overstay/" rel="noopener noreferrer"&gt;notebookfield.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Drafted with an AI assistant from my own reading of the primary documents; every clause number and link here was checked against the source.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>china</category>
      <category>law</category>
      <category>python</category>
      <category>data</category>
    </item>
    <item>
      <title>The number your rule guarantees isn't always in the rule</title>
      <dc:creator>hc_xshh</dc:creator>
      <pubDate>Mon, 16 Nov 2026 22:38:50 +0000</pubDate>
      <link>https://dev.to/hcxshh/the-number-your-rule-guarantees-isnt-always-in-the-rule-4od6</link>
      <guid>https://dev.to/hcxshh/the-number-your-rule-guarantees-isnt-always-in-the-rule-4od6</guid>
      <description>&lt;p&gt;A tenant in Beijing has a legal guarantee about how warm the flat will be this winter. It is not written in the Beijing rule. That rule, in its twelfth article, sets the dates of the heating season and then requires the supplier to keep bedrooms and living rooms at "the temperature requirements of the current national residential design code" — a pointer, not a number.&lt;/p&gt;

&lt;p&gt;I spent a morning comparing four Chinese heating regulations: Beijing's municipal measures, the Heilongjiang and Shandong provincial regulations, and Xi'an's city regulation. The comparison itself is the interesting part, because the four documents answer the same question four different ways, and three of the differences are things you can only see by putting them side by side.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three shapes of the same promise
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Heilongjiang&lt;/strong&gt; names 20°C, all day, in bedrooms and living rooms, and then describes the measurement point: halfway into the room from the door, 1.4 metres up (art. 32).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shandong&lt;/strong&gt; names 18°C and attaches three preconditions — outdoor temperature at or above the system's design minimum, an envelope that met the design standard when built, and a heating system running normally (art. 21).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Xi'an&lt;/strong&gt; names 18°C, and leaves "other parts" of the flat to the national design code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Beijing&lt;/strong&gt; names nothing. The number is 18°C, and it comes from two standards outside the regulation, with a condition attached that the regulation also does not mention.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you are writing code against these rules, or arguing with a landlord, the shape matters more than the value. A rule that names a number gives you one lookup. A rule that points at a standard gives you a chain: regulation → design code → the clause that actually sets the value → the condition under which the clause applies.&lt;/p&gt;

&lt;h2&gt;
  
  
  The escape clause is in the government's FAQ, not the rule
&lt;/h2&gt;

&lt;p&gt;Beijing's district government publishes a heating FAQ. It states the 18°C figure and names the two standards behind it (GB 50096-2011 and GB 50736-2012). The same page then explains that the number holds when the outdoor mean temperature is above −7.6°C. Below that, the city says it requires suppliers to run their systems at maximum design load, and that it does not require the indoor temperature to be met.&lt;/p&gt;

&lt;p&gt;That is a real limit on the guarantee, and it appears in a Q&amp;amp;A page rather than in the regulation. This is the sort of thing I now check for by default: after finding the clause that states the obligation, I look for the page that explains what the obligation does not cover. Enforcement guidance tends to live there, not in the statute.&lt;/p&gt;

&lt;h2&gt;
  
  
  Arithmetic I had to do myself
&lt;/h2&gt;

&lt;p&gt;The rules give dates, not lengths, so the lengths are my arithmetic, counting both the first and last day:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;City&lt;/th&gt;
&lt;th&gt;Season&lt;/th&gt;
&lt;th&gt;Days&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Beijing, Xi'an&lt;/td&gt;
&lt;td&gt;15 November – 15 March&lt;/td&gt;
&lt;td&gt;121&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Harbin&lt;/td&gt;
&lt;td&gt;20 October – 20 April&lt;/td&gt;
&lt;td&gt;183&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Harbin this winter&lt;/td&gt;
&lt;td&gt;opened 10 October; end unconfirmed&lt;/td&gt;
&lt;td&gt;193 if it ends 20 April&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Nothing in the rules says "183 days". Harbin's own July consultation document does, which gave me a check on the counting convention: my inclusive count reproduced their number exactly. When you compute a figure a document does not state, find one document that does state it nearby, and use it to calibrate the convention. Off-by-one in a season length is exactly the kind of error nobody catches.&lt;/p&gt;

&lt;h2&gt;
  
  
  Version control is the hard part
&lt;/h2&gt;

&lt;p&gt;Chinese municipal websites often republish provincial texts. The Heilongjiang regulation I read is hosted on a district government site, uploaded in 2023; the Shandong text lives on a county government site and matches the March 2025 amendment quoted by the provincial people's congress. Neither is the canonical publisher, and neither page makes it obvious which amendment it contains.&lt;/p&gt;

&lt;p&gt;Two consequences worth writing down:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Search snippets of a regulation can be two versions old.&lt;/strong&gt; An early search result showed Heilongjiang's floor at 18°C with a different article number; the current text says 20°C at article 32. I trusted the full text with an amendment date over any snippet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A news report of adoption is not the final text.&lt;/strong&gt; Xi'an's government page reports the regulation being passed in December 2017 and summarises the refund tiers. I used it for the tiers and said so in the piece, rather than pretending I had the article text.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What a comparison like this is good for
&lt;/h2&gt;

&lt;p&gt;It produces a table nobody publishes: floor temperature, season length and refund schedule for four places, each cell traceable to an article number. It also produces honest gaps. I could confirm Harbin opened its season ten days early this year; I could not find the published final text of the decision that may have moved it, so the article says the length is conditional. Where the money goes after a failed season (Heilongjiang has a 50%/100% daily refund table in the regulation itself; Xi'an has 20%/50%/100% bands; Beijing routes disputes to third-party measurement and then to the regulator or a court) is the part I would want if I were renting.&lt;/p&gt;

&lt;p&gt;The full comparison, with article numbers and the source for every figure, is on my site: &lt;a href="https://notebookfield.com/posts/heating-temperature-guarantee/" rel="noopener noreferrer"&gt;China's heating guarantee: 18°C, 20°C, or no number stated&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Drafted with an AI assistant from my own reading of the primary documents; every clause number and link here was checked against the source.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>china</category>
      <category>data</category>
      <category>research</category>
      <category>writing</category>
    </item>
  </channel>
</rss>
