{"section":"known-issues","requestedLocale":"en","requestedSlug":"formula-promotions-use-incorrect-freight-value-when-shipping-discounts-are-applied","locale":"en","slug":"formula-promotions-use-incorrect-freight-value-when-shipping-discounts-are-applied","path":"docs/en/known-issues/Pricing & Promotions/formula-promotions-use-incorrect-freight-value-when-shipping-discounts-are-applied.md","branch":"main","content":"## Summary\n\n\nWhen a cart contains both a shipping discount promotion (e.g. percentage off freight) and a formula-based promotion, the freight value used by the RnB to evaluate the formula is incorrect.\nInternally, the shipping discount is applied twice during RnB’s freight normalization step, causing the formula to calculate the discount based on a freight value lower than it should be.\nAs a result:\n\n- The formula promotion returns an incorrect value (typically lower).\n- The discount appears inconsistent with any SLA returned by Logistics.\n- This only affects promotions evaluated after freight discounts:  Formula, Tax (percentage based on freight), and Reward.\n\n\n#### Simulation\n\n\n\n1. Create a **shipping discount promotion** (e.g. 10% off freight).\n2. Create a **formula-based promotion** using a freight expression, for example: `freight - floor(freight)`\n3. Generate a cart that has more than one SLA, ensuring a shipping discount applies.\n4. Observe that the calculated discount value from the formula promotion is incorrect.\n\n\n#### Workaround\n\n\nN/A"}