-performance optimization in the calculation
-discount calculation