Rental Housing Market Development and Regulation Act Article 7

The amount of security deposits shall not surpass the equivalent of two months’ rent.When leases expire and the lessee return the rental housing and pay back debts arising from leases, the lessors shall return the security deposits after deducting any unpaid debt.
中文原文 租賃住宅市場發展及管理條例第7條
押金之金額,不得逾二個月之租金總額。
出租人應於租賃契約消滅,承租人返還租賃住宅及清償租賃契約所生之債務時,返還押金或抵充債務後之賸餘押金。

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