(B)
5% of the amount of the settlement that exceeds $3000.00, to a maximum fee of $500.00, which amount of settlement shall be established by an affidavit filed with the sheriff and given by the creditor or the solicitor of the creditor when it is less than the amount to be paid under the order, certificate or writ,