The number of days of confinement is credited in full toward the principal sentence, each day being converted into the amount corresponding to the ratio of one day of detention prescribed in Article 18, paragraph (6) of the Penal Code.
拘置の日数は、その一日を、刑法第十八条第六項に規定する留置一日の割合に相当する金額に換算し、全部本刑に算入する。
Read this with the articles around it