(d) The earnings of a resident participating in a PIE certification program under this article shall be deposited in the Resident Trust Account with the Division of Juvenile Services. The earnings shall be paid to the resident after withholding of state, federal and local taxes, and after other deductions provided for in this chapter. The expenses of room and board, as fixed by the director and the budget agency for facilities operated by the director or, if the resident is housed in a facility not operated by the director, the amount paid by the Division of Juvenile Services to the operator of the facility or other appropriate authority for room and board, and other incidentals as established by agreement between the Division of Juvenile Services and the appropriate authority, shall be deducted: Provided, That the director shall adopt policies and procedures for the additional deduction from a residents earnings of not less than five percent nor more than twenty percent, to be paid into the Crime Victims Compensation Fund created by article two-a, chapter fourteen of this code. Total deductions shall not exceed eighty percent of the resident's gross earnings. Earnings deposited by the director, with accrued interest, shall be paid to the resident no later than at the residents discharge or release on parole. When special circumstances warrant, or for just cause, the director may waive room and board charges by a facility operated by the Division of Juvenile Services or, if the resident is housed in a facility not operated by the Division of Juvenile Services, authorize payment of room and board charges from other available funds.