Separate fee components
Treat each charge according to its own basis. A flat fee contributes the entered currency amount rather than scaling with the invoice. A percentage-based fee applies the entered percentage to the relevant invoice balance. When both are included, the fixed and percentage components are combined. Keep the original principal distinct from the added penalties when checking the resulting amount due.