dc

Dank Memer Pat/Coup Discount Calculator

Privateunrated

Content

20 lines
{=(comment):
- Pat/Coup Discount Calculator
- short number to big number is taken from taxcalc/tc tag.
}
{=(salePrice):{math:round({math:({replace(e*,*1000):{replace(e,*10^):{replace(k,*1000):{replace(m,*1000000):{replace(-,):{replace(|,):{args(1)}}}}}}})}*1)}}
{=(discount):{replace(%,):{args(2)}}}
{=(originalPrice):{math:round({salePrice}/(1-0.{discount}))}}

{=(output):**Original Price:** {replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{originalPrice}}}}}}
**Discount:** {discount}%
**Sale Price:** {replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{salePrice}}}}}}

**Price with Coupon:** {replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{math:round({salePrice}*0.95)}}}}}}
**Price for Patron:** {replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{math:round({originalPrice}*(1-(0.{discount}+0.05)))}}}}}}
**Pat+Coup Price:** {replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{math:round({originalPrice}*(1-(0.{discount}+0.05))*0.95)}}}}}}

} 

{=(error):```[p]dc <sale price> <sale discount>```}
{=(embedMsg):{if({2}=={1}):error|output}}

Embed

1 line
{"color": 13861375, "title": "Dank Discount Calculator", "footer": {"text": "made by ares#1541", "icon_url": "{server(icon)}"}, "description": "{{embedMsg}}"}
Raw JSON
{
  "id": 1198292,
  "created_at": "2021-12-18T05:00:05.000Z",
  "tag_name": "dc",
  "nsfw": false,
  "owner_id": "658056118681206827",
  "uses": 53,
  "description": "Dank Memer Pat/Coup Discount Calculator",
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "773480437896577035",
  "sharer": "658056118681206827",
  "content": "{=(comment):\n- Pat/Coup Discount Calculator\n- short number to big number is taken from taxcalc/tc tag.\n}\n{=(salePrice):{math:round({math:({replace(e*,*1000):{replace(e,*10^):{replace(k,*1000):{replace(m,*1000000):{replace(-,):{replace(|,):{args(1)}}}}}}})}*1)}}\n{=(discount):{replace(%,):{args(2)}}}\n{=(originalPrice):{math:round({salePrice}/(1-0.{discount}))}}\n\n{=(output):**Original Price:** {replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{originalPrice}}}}}}\n**Discount:** {discount}%\n**Sale Price:** {replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{salePrice}}}}}}\n\n**Price with Coupon:** {replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{math:round({salePrice}*0.95)}}}}}}\n**Price for Patron:** {replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{math:round({originalPrice}*(1-(0.{discount}+0.05)))}}}}}}\n**Pat+Coup Price:** {replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{math:round({originalPrice}*(1-(0.{discount}+0.05))*0.95)}}}}}}\n\n} \n\n{=(error):```[p]dc <sale price> <sale discount>```}\n{=(embedMsg):{if({2}=={1}):error|output}}",
  "embed": "{\"color\": 13861375, \"title\": \"Dank Discount Calculator\", \"footer\": {\"text\": \"made by ares#1541\", \"icon_url\": \"{server(icon)}\"}, \"description\": \"{{embedMsg}}\"}",
  "last_fetched": "2026-10-20T18:10:37.914Z"
}