(a) When the individual seeking permission to proceed in forma pauperis is a prisoner, the prisoner shall file a certified summary of the prisoner's inmate account, together with the affidavit required pursuant to § 8802 of this title. The summary shall contain all account activity for the 6-month period immediately preceding the filing of the complaint, or for the entire time the prisoner has been incarcerated, whichever time is less.
(b) If a court determines that a prisoner may proceed in forma pauperis, the court shall issue an order directing that the complaint be filed setting forth the total amount to be paid and establishing a schedule for payment. The schedule shall be established as follows:
(1) The prisoner shall pay 20% of the average daily balance of the prisoner's inmate account over the previous 6-month period or the entire time that prisoner has been incarcerated, whichever time is less.
(2) In each successive month, until the established court costs and filing fees are paid in full, the prisoner shall pay 10% of the average daily balance of the prisoner's inmate account for the preceding month.
(c) Nothing in this section shall limit the court's ability to demand a greater amount than would result from this calculation based upon the information provided in the affidavit.
(d) Nothing in this section shall prohibit a prisoner from paying more than the minimum due under the court's calculation.
(e) To the extent that a prisoner refuses to pay fees and costs as ordered by the court, pursuant to this section, the court may order the Department to debit the prisoner's inmate account in accordance with § 8903(13) of Title 29.
(f) In no event shall a prisoner file a complaint or appeal of a judgment arising from a complaint brought in forma pauperis if the prisoner has, on 3 or more prior occasions, while incarcerated or detained in any facility, brought an action or an appeal in a federal court or constitutional or statutory court of the State that was dismissed on the grounds that it was frivolous, malicious or failed to state a claim upon which relief may be granted unless the prisoner is under imminent danger of serious physical injury at the time that the complaint is filed. Complaints or appeals therefrom dismissed prior to the enactment of this section shall be counted for purposes of determining the number of previously dismissed proceedings. No petition for a writ of habeas corpus or any appeal from the denial of any such petition shall be dismissed under this subsection.
(g) A prisoner may not bring or file a complaint relating to a condition of confinement, whether proceeding in forma pauperis or otherwise, unless the prisoner has fully exhausted all administrative remedies available through the institutional grievance procedure. The fact that monetary damages or any other form of legal or equitable relief may not be available through the grievance procedure shall not excuse the inmate from exhausting the institutional grievance procedure prior to filing a complaint.