looping for discount times