Labor Standards Act Article 84-2

The seniority of a worker is calculated from the first day of his/her employment. The standards of severance and retirement benefit for the seniority accumulated before the application of the Act shall be calculated in accordance with the applicable Acts and administrative regulations effective during that time. In cases there were no applicable Acts and administrative regulations, these standards shall be calculated in accordance with the rules promulgated by the respective business entities or the agreements reached by workers and employers themselves. After the application of the Act, the standards of severance pays and retirement benefits for the seniority accumulated shall be calculated in accordance with Articles 17 and 55 of the Act.
中文原文 勞動基準法第84-2條
勞工工作年資自受僱之日起算,適用本法前之工作年資,其資遣費及退休金給與標準,依其當時應適用之法令規定計算;當時無法令可資適用者,依各該事業單位自訂之規定或勞雇雙方之協商計算之。
適用本法後之工作年資,其資遣費及退休金給與標準,依第十七條及第五十五條規定計算。

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