Armed Forces Disciplinary Punishment Act Article 29

Confinement for repentance education. The confinement for repentance education shall be executed in a designated facility and its period shall be no less than one day but more than fifteen days yet the period shall not count toward as part of the years of active service nor the years of service for retirement, separation, and discharge.There shall not be imprisonment, torture, or other inhuman treatment against the offender in confinement for repentance education.The designated facility, contents of education, correction management and assessment, staff qualifications, responsibility delegation, exclusion of confinement period as part of the years of active service and years for retirement/ separation/discharge, and other related regulatory affairs shall be promulgated by the Ministry of National Defense.
中文原文 陸海空軍懲罰法第29條
悔過,於指定處所實施悔過教育;其期間為一日以上十五日以下,執行期間不列計現役期間及退伍(休、職)年資。
悔過之實施,不得有禁錮、凌虐或其他非人道待遇之行為。
第一項悔過實施處所、教育之課程內容、管理與考核、管理人員之資格、權責劃分、不列計現役期間與年資之計算及其他相關事項之辦法,由國防部定之。

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