Credit Card Fees Calculation Formula

Hello Forum,

I’m trying to add a line which would support doing this calculation:
c3cfe023ed78a4d9438184901986d87506c43132

Which is how I would be able to include Credit Card fees.