Enter the basket, the percentage and the maximum.
saving = the smaller of basket × percent and the maximum