If the principal be not taken in execution within thirty (30) days after final judgment against him or her when committed for want of bail, or when committed by his or her bail or by the court to which his or her bail shall have surrendered him or her before such final judgment, or within thirty (30) days after he or she shall have been committed by his or her bail or by the court to which his or her bail shall have surrendered him or her, pending action against his or her bail, such principal shall be discharged from the correctional institution upon payment of prison fees. In computing the periods of time provided in this section, time during which execution is stayed shall not be included.
R.I. Gen. Laws § 10-11-11