tc

Privateunrated

Content

17 lines

{=(GUIDE): Don't edit anything here unless you know how}
{=(tax.sani):{m:{join():{replace(e,*10^):{replace(k,*1000):{replace(m,*1000000):{replace(%2C,):{urlencode:{lower:{args}}}}}}}}}}
{=(tax.number):{if({tax.sani}=={m:trunc(({tax.sani})/1)}.0):{m:trunc(({tax.sani})/1)}|-1}}
{=(tax.limits):25000 50000 99999 749998 2499999}
{=(tax.rates):0 0.01 0.03 0.05 0.08 0.15}
{=(tax.ratecheck):-1 {replace(0,1):{m:sgn({tax.limits(1)}-({tax.number}))} {m:sgn({tax.limits(2)}-({tax.number}))} {m:sgn({tax.limits(3)}-({tax.number}))} {m:sgn({tax.limits(4)}-({tax.number}))} {m:sgn({tax.limits(5)}-({tax.number}))}} 1}
{=(rate):{tax.rates({index(1):{tax.ratecheck}})}}

{=(tax.amount.end):{m:trunc((({tax.number}/(1-{rate})*1)+1) ) } }    
{=(tax.amount.start):{m:trunc({tax.number}*{rate})}}
{=(tax.endrate):{m:trunc({rate}*100)}%}
{=(tax.amount.lost):{m:trunc({tax.amount.end}-{tax.number})}}
{embed(color):#ff0000}

{=(message.change):{if({tax.number}==-1):2|1}}
{=(message1):**Amount expected to pay** ```{tax.amount.end}```**Amount user would receive** ```{tax.number}```**Amount lost by taxes  ({tax.endrate})** ```{tax.amount.lost}```}
{=(message2):You'll need to input a whole number for this to work!}


Embed

1 line
{"color": 5198940, "title": "Mason Co. Tax Calculator", "thumbnail": {"url": "https://i.imgur.com/7uqigVc.png"}, "description": "{message{message.change}}"}
Raw JSON
{
  "id": 542120,
  "created_at": "2021-01-18T11:48:42.000Z",
  "tag_name": "tc",
  "nsfw": false,
  "owner_id": "251130323486769153",
  "uses": 1492,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "765798183364067338",
  "sharer": "251130323486769153",
  "content": "\n{=(GUIDE): Don't edit anything here unless you know how}\n{=(tax.sani):{m:{join():{replace(e,*10^):{replace(k,*1000):{replace(m,*1000000):{replace(%2C,):{urlencode:{lower:{args}}}}}}}}}}\n{=(tax.number):{if({tax.sani}=={m:trunc(({tax.sani})/1)}.0):{m:trunc(({tax.sani})/1)}|-1}}\n{=(tax.limits):25000 50000 99999 749998 2499999}\n{=(tax.rates):0 0.01 0.03 0.05 0.08 0.15}\n{=(tax.ratecheck):-1 {replace(0,1):{m:sgn({tax.limits(1)}-({tax.number}))} {m:sgn({tax.limits(2)}-({tax.number}))} {m:sgn({tax.limits(3)}-({tax.number}))} {m:sgn({tax.limits(4)}-({tax.number}))} {m:sgn({tax.limits(5)}-({tax.number}))}} 1}\n{=(rate):{tax.rates({index(1):{tax.ratecheck}})}}\n\n{=(tax.amount.end):{m:trunc((({tax.number}/(1-{rate})*1)+1) ) } }    \n{=(tax.amount.start):{m:trunc({tax.number}*{rate})}}\n{=(tax.endrate):{m:trunc({rate}*100)}%}
{=(tax.amount.lost):{m:trunc({tax.amount.end}-{tax.number})}}\n{embed(color):#ff0000}\n\n{=(message.change):{if({tax.number}==-1):2|1}}\n{=(message1):**Amount expected to pay** ```{tax.amount.end}```**Amount user would receive** ```{tax.number}```**Amount lost by taxes  ({tax.endrate})** ```{tax.amount.lost}```}\n{=(message2):You'll need to input a whole number for this to work!}
",
  "embed": "{\"color\": 5198940, \"title\": \"Mason Co. Tax Calculator\", \"thumbnail\": {\"url\": \"https://i.imgur.com/7uqigVc.png\"}, \"description\": \"{message{message.change}}\"}",
  "last_fetched": "2026-10-20T23:50:35.857Z"
}