Thanks for your reply. The snippet solves the problem.
However, I’d say the plugin should be consistent. In my example, the discount calculated on the product page was 8408
but when I added the product bundle to the cart, it changed to 8400
.
It means JavaScript function applies the discount to a product bundle whereas the cart to each product.