Made bulk discount calculation a little more efficient