discount_calculator
Compute the final price after discount, total savings, and effective discount percentage from original price and discount amount or percentage.
Instructions
Calculate the discounted price, amount saved, and effective discount percentage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| original_price | Yes | Original price before discount | |
| discount | Yes | Discount amount or percentage | |
| discount_type | No | Whether discount is a percentage or fixed amount | percent |