How is the credit card fee calculated?

When you pay an outstanding balance by credit card we charge a fee of $0.30 + 2.9% of the outstanding balance. For example, if you pay a balance of $50 with a credit card we will charge a fee of $.30 plus $1.45 for a total fee of $1.75.