Regulations Governing Visiting, Residency, and Permanent Residency of Aliens Article 14

Any foreign national whose duration of residency has expired or whose reason for residency no longer exists, whose residence permit has been revoked, and to whom any of the provisos under Article 3, Paragraph 2 applies, may apply to the NIA for an extension of the period before he/she leaves the ROC by submitting the relevant documents.The period before leaving the ROC under the preceding paragraph shall be subject to Article 3, Paragraph 3.
中文原文 外國人停留居留及永久居留辦法第14條
外國人居留期限屆滿,或居留原因消失,經廢止居留許可,有第三條第二項但書各款情形之一者,得提出相關證明文件,向移民署申請延長出國期限。
前項所定出國期限,準用第三條第三項規定。

English translation for reference only; the Chinese text prevails. Not legal advice.