taxcalc

Privateunrated

Content

36 lines
{=(ID):{if({in(k):{args(1)}}==true):{math:trunc({replace(k, ):{args(1)}}*1000)}|{if({in(K):{args(1)}}==true):{math:trunc({replace(k, ):{args}}*1000)}|{if({in(m):{args(1)}}==true):{math:trunc({replace(m, ):{args(1)}}*1000000)}|{if({in(M):{args}}==true):{math:trunc({replace(M, ):{args(1)}}*1000000)}|{args(1)}}}}}}
{=(nn):{math:abs({ID})}}
{=(tt):{if({nn}<=20000):1|{if({nn}<=50000):0.99|{if({nn}<=500000):0.97|{if({nn}<=999999):0.95|0.92}}}}}
{=(taxes):{if({tt}==1):0|{if({tt}==0.99):1|{if({tt}==0.97):3|{if({tt}==0.95):5|8}}}}}
{=(calc):{math:round({nn}/{tt})}}
{=(rr):{if({nn}=={m:trunc({nn}/1)}):{calc}|{if({nn}=={m:{nn}/1}):{calc}|}}}
{=(takeout):{math:trunc({rr}-{nn})}}
{=(Imm):{if({nn}<=20000):1|{if({nn}<=50000):0.99|{if({nn}<=500000):0.97|{if({nn}<=999999):0.95|0.92}}}}}
{=(clc):{math:round({nn}*{Imm})}}
{=(mayur):{if({nn}=={m:trunc({nn}*1)}):{clc}|{if({nn}=={m:{nn}*1}):{clc}|}}}
{=(vv):{m:{nn}/500000}}
{=(qq):{m:{vv}*15000}}
{=(vvv):{m:{nn}/100000}}
{=(qqq):{m:{vvv}*3000}}
{=(nospltt):{m:{rr}-{nn}}}
{=(bp):{m:{nospltt}+{nn}}}
{=(splttbp5k):{m:{qq}+{nn}}}
{=(splttbp1k):{m:{qqq}+{nn}}}

{=(result):   {if({args}==):Argument is empty, provide a value.|Amount expected to pay: `{rr}`
Amount expected to be received: `{nn}`
Tax Percent: `{taxes}%` 
Tax Paid/Amount lost by tax: `{nospltt}`}}
{=(result1):Amount expected to pay: `{splttbp5k}`
Amount expected to be received: `{m:round({nn})}`
Tax Percent: `3%`
Tax Paid/Amount lost by tax: `{qq}`
# of 500k's: `{vv}`}
{=(result2):Amount expected to pay: `{splttbp1k}`
Amount expected to be received: `{m:round({nn})}`
Tax Percent: `3%`
Tax Paid/Amount lost by tax: `{qqq}`
# of 100k's: `{vvv}`}
 
 
{embed(timestamp):now}

Embed

1 line
{"color": 261888, "title": "Tax Calculator", "author": {"name": "Dank Society", "icon_url": "{user(avatar)}"}, "footer": {"text": "{user(proper)}", "icon_url": "{server(icon)}"}, "description": "{if({args(2)}==500k):{result1}|{if({args(2)}==100k):{result2}|{result}}}"}
Raw JSON
{
  "id": 256137,
  "created_at": "2022-04-26T10:36:57.284Z",
  "tag_name": "taxcalc",
  "nsfw": false,
  "owner_id": "527994612271546379",
  "uses": 360,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "701353851059437568",
  "sharer": "527994612271546379",
  "content": "{=(ID):{if({in(k):{args(1)}}==true):{math:trunc({replace(k, ):{args(1)}}*1000)}|{if({in(K):{args(1)}}==true):{math:trunc({replace(k, ):{args}}*1000)}|{if({in(m):{args(1)}}==true):{math:trunc({replace(m, ):{args(1)}}*1000000)}|{if({in(M):{args}}==true):{math:trunc({replace(M, ):{args(1)}}*1000000)}|{args(1)}}}}}}\n{=(nn):{math:abs({ID})}}\n{=(tt):{if({nn}<=20000):1|{if({nn}<=50000):0.99|{if({nn}<=500000):0.97|{if({nn}<=999999):0.95|0.92}}}}}\n{=(taxes):{if({tt}==1):0|{if({tt}==0.99):1|{if({tt}==0.97):3|{if({tt}==0.95):5|8}}}}}\n{=(calc):{math:round({nn}/{tt})}}\n{=(rr):{if({nn}=={m:trunc({nn}/1)}):{calc}|{if({nn}=={m:{nn}/1}):{calc}|}}}\n{=(takeout):{math:trunc({rr}-{nn})}}\n{=(Imm):{if({nn}<=20000):1|{if({nn}<=50000):0.99|{if({nn}<=500000):0.97|{if({nn}<=999999):0.95|0.92}}}}}\n{=(clc):{math:round({nn}*{Imm})}}\n{=(mayur):{if({nn}=={m:trunc({nn}*1)}):{clc}|{if({nn}=={m:{nn}*1}):{clc}|}}}\n{=(vv):{m:{nn}/500000}}\n{=(qq):{m:{vv}*15000}}\n{=(vvv):{m:{nn}/100000}}\n{=(qqq):{m:{vvv}*3000}}\n{=(nospltt):{m:{rr}-{nn}}}\n{=(bp):{m:{nospltt}+{nn}}}\n{=(splttbp5k):{m:{qq}+{nn}}}\n{=(splttbp1k):{m:{qqq}+{nn}}}\n\n{=(result):   {if({args}==):Argument is empty, provide a value.|Amount expected to pay: `{rr}`\nAmount expected to be received: `{nn}`\nTax Percent: `{taxes}%` \nTax Paid/Amount lost by tax: `{nospltt}`}}\n{=(result1):Amount expected to pay: `{splttbp5k}`\nAmount expected to be received: `{m:round({nn})}`\nTax Percent: `3%`\nTax Paid/Amount lost by tax: `{qq}`\n# of 500k's: `{vv}`}\n{=(result2):Amount expected to pay: `{splttbp1k}`\nAmount expected to be received: `{m:round({nn})}`\nTax Percent: `3%`\nTax Paid/Amount lost by tax: `{qqq}`\n# of 100k's: `{vvv}`}\n \n \n{embed(timestamp):now}",
  "embed": "{\"color\": 261888, \"title\": \"Tax Calculator\", \"author\": {\"name\": \"Dank Society\", \"icon_url\": \"{user(avatar)}\"}, \"footer\": {\"text\": \"{user(proper)}\", \"icon_url\": \"{server(icon)}\"}, \"description\": \"{if({args(2)}==500k):{result1}|{if({args(2)}==100k):{result2}|{result}}}\"}",
  "last_fetched": "2026-10-20T21:59:43.454Z"
}