taxcalc
Privateunrated
Content
41 lines{=(input):{replace( ,):{lower:{args}}}}
{=(op):{if({in(+):{input}}==true):+|{if({in(-):input}==true):-|{if({in(*):input}==true):*|{if({in(/):input}==true):/|none}}}}}
{=(tempdata):{if({op}==+):{replace(+,,):{input}}|{if({op}==-):{replace(-,,):{input}}|{if({op}==*):{replace(*,,):{input}}|{if({op}==/):{replace(/,,):{input}}|{input}}}}}}
{=(tvalue1):{list(0):{tempdata}}}
{=(tvalue2):{if({op}!=none):{list(1):{tempdata}}|none}}
{=(value1):{if({in(k):{tvalue1}}==true):{math:trunc({replace(k, ):{tvalue1}}*1000)}|{if({in(m):{tvalue1}}==true):{math:trunc({replace(m, ):{tvalue1}}*1000000)}|{tvalue1}}}}
{=(value2):{if(tvalue2!=none):{if({in(k):{tvalue2}}==true):{math:trunc({replace(k, ):{tvalue2}}*1000)}|{if({in(m):{tvalue2}}==true):{math:trunc({replace(m, ):{tvalue2}}*1000000)}|{tvalue2}}}|none}}
{=(ID):{if({op}==+):{m:{value1}+{value2}}|{if({op}==-):{m:{value1}-{value2}}|{if({op}==*):{m:{value1}*{value2}}|{if({op}==/):{m:{value1}/{value2}}|{value1}}}}}}
{=(nn):{math:abs({ID})}}
{=(tt):{if({nn}<=25000):1|{if({nn}<50000):0.99|{if({nn}<=100000):0.97|{if({nn}<=749999):0.95|{if({nn}<=2499999):0.92|0.85}}}}}}
{=(calc):{math:round({nn}/{tt})}}
{=(temprr):{if({nn}=={m:trunc({nn}/1)}):{calc}|{if({nn}=={m:{nn}/1}):{calc}|}}}
{=(newtt):{and({tt}==0.99|{temprr}>=50000):0.97|{and({tt}==0.97|{temprr}>100000):0.95|{and({tt}==0.95|{temprr}>=750000):0.92|{and({tt}==0.92|{temprr}>=2500000):0.85|{tt}}}}}}
{=(rr):{math:round({nn}/{newtt})}}
{=(tax):{if({newtt}==1):0|{if({newtt}==0.99):1|{if({newtt}==0.97):3|{if({newtt}==0.95):5|{if({newtt}==0.92):8|15}}}}}}
{=(takeout):{math:trunc({rr}-{nn})}}
{=(Imm):{if({nn}<=25000):1|{if({nn}<50000):0.99|{if({nn}<=100000):0.97|{if({nn}<=749999):0.95|{if({nn}<=2499999):0.92|0.85}}}}}}
{=(clc):{math:round({nn}*{Imm})}}
{=(result):{if({args}==):Argument is empty, provide a value.|Amount expected to pay: `{rr}`
Amount expected to be received: `{nn}`
Tax Percent: `{tax}%`
Tax Paid/Amount lost by tax: `{takeout}`}}
{embed(timestamp):now}Embed
1 line{"color": 2224640, "author": {"name": "{server(name)}", "icon_url": "{server(icon)}"}, "description": "{result}"}Raw JSON
{
"id": 518517,
"created_at": "2021-01-06T05:09:44.000Z",
"tag_name": "taxcalc",
"nsfw": false,
"owner_id": "548084349417816064",
"uses": 255,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "791399536773562379",
"sharer": "391242096201302039",
"content": "{=(input):{replace( ,):{lower:{args}}}}\n{=(op):{if({in(+):{input}}==true):+|{if({in(-):input}==true):-|{if({in(*):input}==true):*|{if({in(/):input}==true):/|none}}}}}\n{=(tempdata):{if({op}==+):{replace(+,,):{input}}|{if({op}==-):{replace(-,,):{input}}|{if({op}==*):{replace(*,,):{input}}|{if({op}==/):{replace(/,,):{input}}|{input}}}}}}\n{=(tvalue1):{list(0):{tempdata}}}\n{=(tvalue2):{if({op}!=none):{list(1):{tempdata}}|none}}\n\n{=(value1):{if({in(k):{tvalue1}}==true):{math:trunc({replace(k, ):{tvalue1}}*1000)}|{if({in(m):{tvalue1}}==true):{math:trunc({replace(m, ):{tvalue1}}*1000000)}|{tvalue1}}}}\n\n{=(value2):{if(tvalue2!=none):{if({in(k):{tvalue2}}==true):{math:trunc({replace(k, ):{tvalue2}}*1000)}|{if({in(m):{tvalue2}}==true):{math:trunc({replace(m, ):{tvalue2}}*1000000)}|{tvalue2}}}|none}}\n\n\n{=(ID):{if({op}==+):{m:{value1}+{value2}}|{if({op}==-):{m:{value1}-{value2}}|{if({op}==*):{m:{value1}*{value2}}|{if({op}==/):{m:{value1}/{value2}}|{value1}}}}}}\n\n{=(nn):{math:abs({ID})}}\n\n\n{=(tt):{if({nn}<=25000):1|{if({nn}<50000):0.99|{if({nn}<=100000):0.97|{if({nn}<=749999):0.95|{if({nn}<=2499999):0.92|0.85}}}}}}\n{=(calc):{math:round({nn}/{tt})}}\n{=(temprr):{if({nn}=={m:trunc({nn}/1)}):{calc}|{if({nn}=={m:{nn}/1}):{calc}|}}}\n\n{=(newtt):{and({tt}==0.99|{temprr}>=50000):0.97|{and({tt}==0.97|{temprr}>100000):0.95|{and({tt}==0.95|{temprr}>=750000):0.92|{and({tt}==0.92|{temprr}>=2500000):0.85|{tt}}}}}}\n\n{=(rr):{math:round({nn}/{newtt})}}\n\n{=(tax):{if({newtt}==1):0|{if({newtt}==0.99):1|{if({newtt}==0.97):3|{if({newtt}==0.95):5|{if({newtt}==0.92):8|15}}}}}}\n\n{=(takeout):{math:trunc({rr}-{nn})}}\n\n{=(Imm):{if({nn}<=25000):1|{if({nn}<50000):0.99|{if({nn}<=100000):0.97|{if({nn}<=749999):0.95|{if({nn}<=2499999):0.92|0.85}}}}}}\n{=(clc):{math:round({nn}*{Imm})}}\n\n\n\n{=(result):{if({args}==):Argument is empty, provide a value.|Amount expected to pay: `{rr}`\n\nAmount expected to be received: `{nn}`\n\nTax Percent: `{tax}%` \nTax Paid/Amount lost by tax: `{takeout}`}}\n \n{embed(timestamp):now}",
"embed": "{\"color\": 2224640, \"author\": {\"name\": \"{server(name)}\", \"icon_url\": \"{server(icon)}\"}, \"description\": \"{result}\"}",
"last_fetched": "2026-10-20T23:42:37.655Z"
}