Type your basket total, the code percentage and its cap.
Saving = basket × percentage, but never more than the cap.