Count each tax year separately
Then test the six preceding years
For a non-domiciled person who is resident for at least 183 days in a tax year, the foreign-income result can depend on the six consecutive preceding years. The official rule looks at whether each of those years reached 183 days and whether any single departure exceeded 30 days. A qualifying break can reset the consecutive-year count; an ordinary short trip does not. Check the exact arrival and departure dates against the rule rather than relying on calendar-month totals.
Build records that match the tax return
Keep passport movement records, residence permits, employer travel calendars, payroll and bonus records, and evidence showing where services were performed and who paid. Reconcile those documents before filing. A day count alone does not answer whether an item is China-source income, how a treaty applies, or whether foreign tax credit relief is available.
The residence rule and the six-year foreign-income rule apply only to their stated conditions. Domicile, treaty residence, income type, and employer arrangements require separate analysis. See MOF/STA Announcement No. 34 of 2019 and the State Taxation Administration explanation.