taxcalc

Privateunrated

Content

12 lines
{let(argsused):{if({args(2)}==k):{math:trunc({args(1)}*1000)}|{args(1)}}}

{let(embed):{if({math:round(abs({argsused})/abs({argsused}))}==1):
{all({argsused}<=10000|{argsused}>0):{argsused}}
{all({argsused}<=50000|{argsused}>10000):{if({math:round((100/99)*{argsused})}>50000):{math:round((100/97)*{argsused})}|{math:round((100/99)*{argsused})}}} 
{all({argsused}<=500000|{argsused}>50000):{if({math:round((100/97)*{argsused})}>500000):{math:round((100/92)*{argsused})}|{math:round((100/97)*{argsused})}}} 
{all({argsused}<=1000000|{argsused}>500000):{if({math:round((100/92)*{argsused})}>1000000):{math:round((100/90)*{argsused})}|{math:round((100/92)*{argsused})}}}
{if({argsused}>1000000):{math:round((100/90)*{argsused})}}}}

{let(title):{all({math:round(abs({1})/abs({1}))}==1|{1}>0):Amount to pay to get {argsused} after tax:|Incorrect value.}}

{let(footer):{all({math:round(abs({argsused})/abs({argsused}))}==1|{argsused}=={args(1)}):You can use 'k' for [* 1000] by putting it after the value separated by a space.}}

Embed

1 line
{"color": 5198940, "title": "{title}", "footer": {"text": "{footer}"}, "description": "{embed} "}
Raw JSON
{
  "id": 266305,
  "created_at": "2022-04-26T10:37:03.895Z",
  "tag_name": "taxcalc",
  "nsfw": false,
  "owner_id": "273493092244389888",
  "uses": 58,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "694487256135630910",
  "sharer": "273493092244389888",
  "content": "{let(argsused):{if({args(2)}==k):{math:trunc({args(1)}*1000)}|{args(1)}}}\n\n{let(embed):{if({math:round(abs({argsused})/abs({argsused}))}==1):\n{all({argsused}<=10000|{argsused}>0):{argsused}}\n{all({argsused}<=50000|{argsused}>10000):{if({math:round((100/99)*{argsused})}>50000):{math:round((100/97)*{argsused})}|{math:round((100/99)*{argsused})}}} \n{all({argsused}<=500000|{argsused}>50000):{if({math:round((100/97)*{argsused})}>500000):{math:round((100/92)*{argsused})}|{math:round((100/97)*{argsused})}}} \n{all({argsused}<=1000000|{argsused}>500000):{if({math:round((100/92)*{argsused})}>1000000):{math:round((100/90)*{argsused})}|{math:round((100/92)*{argsused})}}}\n{if({argsused}>1000000):{math:round((100/90)*{argsused})}}}}\n\n{let(title):{all({math:round(abs({1})/abs({1}))}==1|{1}>0):Amount to pay to get {argsused} after tax:|Incorrect value.}}\n\n{let(footer):{all({math:round(abs({argsused})/abs({argsused}))}==1|{argsused}=={args(1)}):You can use 'k' for [* 1000] by putting it after the value separated by a space.}}",
  "embed": "{\"color\": 5198940, \"title\": \"{title}\", \"footer\": {\"text\": \"{footer}\"}, \"description\": \"{embed} \"}",
  "last_fetched": "2026-10-20T22:03:49.256Z"
}