taxcalc
Privateunrated
Content
112 lines{=(a1):{math:round({replace(k,*10^3):{replace(K,*10^3):{replace(m,*10^6):{replace(M,*10^6):{args(1)}}}}})}}
{=(a2):{math:round({replace(k,*10^3):{replace(K,*10^3):{replace(m,*10^6):{replace(M,*10^6):{args(2)}}}}})}}
{=(1-tax_rate1a):{if({a1}<=25000):1|{if({a1}<=50000):0.99|{if({a1}<=100000):0.97|{if({a1}<=749999):0.95|{if({a1}<=2499999):0.92|0.85}}}}}}
{=(1-tax_rate1b):{if({a1}<=25000):1|{if({a1}<=49500):0.99|{if({a1}<=97000):0.97|{if({a1}<=712499):0.95|{if({a1}<=2299999):0.92|0.85}}}}}}
{=(1-tax_rate2a):{if({a2}<=25000):1|{if({a2}<=50000):0.99|{if({a2}<=100000):0.97|{if({a2}<=749999):0.95|{if({a2}<=2499999):0.92|0.85}}}}}}
{=(1-tax_rate2b):{if({a2}<=25000):1|{if({a2}<=49500):0.99|{if({a2}<=97000):0.97|{if({a2}<=712499):0.95|{if({a2}<=2299999):0.92|0.85}}}}}}
{=(tax_rate1a):{if({a1}<=25000):0|{if({a1}<=50000):1|{if({a1}<=100000):3|{if({a1}<=749999):5|{if({a1}<=2499999):8|15}}}}}}
{=(tax_rate1b):{if({a1}<=25000):0|{if({a1}<=49500):1|{if({a1}<=97000):3|{if({a1}<=712499):5|{if({a1}<=2299999):8|15}}}}}}
{=(tax_rate2a):{if({a2}<=25000):0|{if({a2}<=50000):1|{if({a2}<=100000):3|{if({a2}<=749999):5|{if({a2}<=2499999):8|15}}}}}}
{=(tax_rate2b):{if({a2}<=25000):0|{if({a2}<=49500):1|{if({a2}<=97000):3|{if({a2}<=712499):5|{if({a2}<=2299999):8|15}}}}}}
{=(tax_covered_amt1):{math:round({a1}/{1-tax_rate1b})}}
{=(tax_anti-covered-amt1):{math:round({a1}*{1-tax_rate1a})}}
{=(tax_anti-covered-amt2):{math:round({a2}*{1-tax_rate2a})}}
{=(frequency):{math:trunc({a1}/{tax_anti-covered-amt2})}}
{=(remainder):{math:round({a1}-{frequency}*{tax_anti-covered-amt2})}}
{=(1-tax_rate_remainder):{if({remainder}<=25000):1|{if({remainder}<=49500):0.99|{if({remainder}<=97000):0.97|{if({remainder}<=712499):0.95|{if({remainder}<=2299999):0.92|0.85}}}}}}
{=(tax_rate_remainder):{if({remainder}<=25000):0|{if({remainder}<=49500):1|{if({remainder}<=97000):3|{if({remainder}<=712499):5|{if({remainder}<=2299999):8|15}}}}}}
{=(f1):{math:round({a1})}}
{=(f2):{tax_covered_amt1}}
{=(f3):{math:round({tax_covered_amt1}-{a1})}}
{=(f4):{tax_anti-covered-amt1}}
{=(f5):{math:round({a1}-{tax_anti-covered-amt1})}}
{=(f6):{math:round({a2})}}
{=(f7):{frequency}}
{=(f8):{math:round({remainder}/{1-tax_rate_remainder})}}
{=(f9):{math:round(({a2}*{frequency}+{remainder}/{1-tax_rate_remainder})-{a1})}}
{=(f10):{math:round(({tax_covered_amt1}-{a1})-(({a2}*{frequency}+{remainder}/{1-tax_rate_remainder})-{a1}))}}
{=(output1):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({replace(k,10^3):{replace(m,10^6):{replace(e,*10^):{f1}}}}/1)}}}}}}}
{=(output2):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({replace(k,10^3):{replace(m,10^6):{replace(e,*10^):{f2}}}}/1)}}}}}}}
{=(output3):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({replace(k,10^3):{replace(m,10^6):{replace(e,*10^):{f3}}}}/1)}}}}}}}
{=(output4):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({replace(k,10^3):{replace(m,10^6):{replace(e,*10^):{f4}}}}/1)}}}}}}}
{=(output5):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({replace(k,10^3):{replace(m,10^6):{replace(e,*10^):{f5}}}}/1)}}}}}}}
{=(output6):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({replace(k,10^3):{replace(m,10^6):{replace(e,*10^):{f6}}}}/1)}}}}}}}
{=(output7):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({replace(k,10^3):{replace(m,10^6):{replace(e,*10^):{f7}}}}/1)}}}}}}}
{=(output8):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({replace(k,10^3):{replace(m,10^6):{replace(e,*10^):{f8}}}}/1)}}}}}}}
{=(output9):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({replace(k,10^3):{replace(m,10^6):{replace(e,*10^):{f9}}}}/1)}}}}}}}
{=(output10):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({replace(k,10^3):{replace(m,10^6):{replace(e,*10^):{f10}}}}/1)}}}}}}}
{=(exe1):Original amount input: `{output1}`
Amount expected to pay: `{output2}`
Amount lost by tax: `{output3}`
Tax rate: `{tax_rate1b}%`
**If not paid the expected amount**
Amount user would receive: `{output4}`
Amount lost by tax: `{output5}`
Tax rate: `{tax_rate1a}%`}
{=(exe2):Total amount required to pay: `{output1}`
Amount of each payment: `{output6}`
Frequency: `{output7}`
Remainder: `{output8}`
Tax rate for frequencies: `{tax_rate2a}%`
Tax rate for remainder: `{tax_rate_remainder}%`
Total amount lost by tax: `{output9}`
Amount saved: `{output10}`}
{=(errormsg1):`[ERROR] Argument is empty, provide a value.`}
{=(errormsg2):`[ERROR] Your first argument can not be negative and no more than 1e12.`}
{=(errormsg3):`[ERROR] Your first and second arguments can not be negative and no more than 1e12.`}
{=(errormsg4):Page 1: pay in one go
format: `-taxcalc <total amount>`
Page 2: pay in installments
format: `-taxcalc <total amount> <amount of each payment>`}
{=(errormsg5):{
"footer":{
"text":"Made by Bloonat!cS. \u2014 Page 1 of 2"
},
"fields":[
{
"name":"Syntax Error",
"value":"`[ERROR] This doesn't seem like a valid number that I can calculate tax with.`",
"inline":false
}
],
"color":16760575,
"type":"rich",
"url":"https:\/\/dankmemer.lol\/",
"title":"Dank Memer Tax Calculator v2.0"
}}
{=(errormsg6):{
"footer":{
"text":"Made by Bloonat!cS. \u2014 Page 2 of 2"
},
"fields":[
{
"name":"Syntax Error",
"value":"`[ERROR] This doesn't seem like a valid number that I can calculate tax with.`",
"inline":false
}
],
"color":16760575,
"type":"rich",
"url":"https:\/\/dankmemer.lol\/",
"title":"Dank Memer Tax Calculator v2.0"
}}
{=(title1):Pay in one go}
{=(title2):Pay in installments}
{=(title3):Missing Argument}
{=(title4):Math Error}
{=(footer1):Made by Bloonat!cS. — Page 1 of 2}
{=(footer2):Made by Bloonat!cS. — Page 2 of 2}
{=(footer3):Made by Bloonat!cS.}
{=(empty):}
{=(statement0):{or({a2}<0|{a2}>1000000000000):3|4}}
{=(statement1):{if({args(2)}!={args(1)}):{statement0}|{if({args(1)}!=):2}}}
{=(statement2):{or({a1}<0|{a1}>1000000000000):1|{statement1}}}
{=(display1):{if({args(1)}==):{errormsg1}|{if({statement2}==1):{errormsg2}|{if({statement2}==2):{exe1}|{if({statement2}==3):{errormsg3}|{if({statement2}==4):{exe2}|{errormsg1}}}}}}}
{=(display2):{if({statement2}==1):{title4}|{if({statement2}==2):{title1}|{if({statement2}==3):{title4}|{if({statement2}==4):{title2}|{title3}}}}}}
{=(display3):{if({statement2}==1):{empty}|{if({statement2}==2):{empty}|{if({statement2}==3):{empty}|{if({statement2}==4):{empty}|{errormsg4}}}}}}
{=(display4):{if({statement2}==1):{footer1}|{if({statement2}==2):{footer1}|{if({statement2}==3):{footer2}|{if({statement2}==4):{footer2}|{footer3}}}}}}
{=(se):{all({output1}==<o error>|{args(1)}!=):{errormsg5}|{all({output6}==<o error>|{output1}!=<o error>|{args(1)}!=):{errormsg6}}}}
{c:cembed {se}}
{silent}
{override}
{display3}Embed
1 line{"url": "https://dankmemer.lol/", "color": 16760575, "title": "Dank Memer Tax Calculator v2.0", "fields": [{"name": "{display2}", "value": "{display1}", "inline": false}], "footer": {"text": "{display4}"}}Raw JSON
{
"id": 398420,
"created_at": "2020-10-29T06:09:17.000Z",
"tag_name": "taxcalc",
"nsfw": false,
"owner_id": "676103178323886085",
"uses": 340,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "740192346024443964",
"sharer": "676103178323886085",
"content": "{=(a1):{math:round({replace(k,*10^3):{replace(K,*10^3):{replace(m,*10^6):{replace(M,*10^6):{args(1)}}}}})}}\n{=(a2):{math:round({replace(k,*10^3):{replace(K,*10^3):{replace(m,*10^6):{replace(M,*10^6):{args(2)}}}}})}}\n{=(1-tax_rate1a):{if({a1}<=25000):1|{if({a1}<=50000):0.99|{if({a1}<=100000):0.97|{if({a1}<=749999):0.95|{if({a1}<=2499999):0.92|0.85}}}}}}\n{=(1-tax_rate1b):{if({a1}<=25000):1|{if({a1}<=49500):0.99|{if({a1}<=97000):0.97|{if({a1}<=712499):0.95|{if({a1}<=2299999):0.92|0.85}}}}}}\n{=(1-tax_rate2a):{if({a2}<=25000):1|{if({a2}<=50000):0.99|{if({a2}<=100000):0.97|{if({a2}<=749999):0.95|{if({a2}<=2499999):0.92|0.85}}}}}}\n{=(1-tax_rate2b):{if({a2}<=25000):1|{if({a2}<=49500):0.99|{if({a2}<=97000):0.97|{if({a2}<=712499):0.95|{if({a2}<=2299999):0.92|0.85}}}}}}\n{=(tax_rate1a):{if({a1}<=25000):0|{if({a1}<=50000):1|{if({a1}<=100000):3|{if({a1}<=749999):5|{if({a1}<=2499999):8|15}}}}}}\n{=(tax_rate1b):{if({a1}<=25000):0|{if({a1}<=49500):1|{if({a1}<=97000):3|{if({a1}<=712499):5|{if({a1}<=2299999):8|15}}}}}}\n{=(tax_rate2a):{if({a2}<=25000):0|{if({a2}<=50000):1|{if({a2}<=100000):3|{if({a2}<=749999):5|{if({a2}<=2499999):8|15}}}}}}\n{=(tax_rate2b):{if({a2}<=25000):0|{if({a2}<=49500):1|{if({a2}<=97000):3|{if({a2}<=712499):5|{if({a2}<=2299999):8|15}}}}}}\n{=(tax_covered_amt1):{math:round({a1}/{1-tax_rate1b})}}\n{=(tax_anti-covered-amt1):{math:round({a1}*{1-tax_rate1a})}}\n{=(tax_anti-covered-amt2):{math:round({a2}*{1-tax_rate2a})}}\n{=(frequency):{math:trunc({a1}/{tax_anti-covered-amt2})}}\n{=(remainder):{math:round({a1}-{frequency}*{tax_anti-covered-amt2})}}\n{=(1-tax_rate_remainder):{if({remainder}<=25000):1|{if({remainder}<=49500):0.99|{if({remainder}<=97000):0.97|{if({remainder}<=712499):0.95|{if({remainder}<=2299999):0.92|0.85}}}}}}\n{=(tax_rate_remainder):{if({remainder}<=25000):0|{if({remainder}<=49500):1|{if({remainder}<=97000):3|{if({remainder}<=712499):5|{if({remainder}<=2299999):8|15}}}}}}\n{=(f1):{math:round({a1})}}\n{=(f2):{tax_covered_amt1}}\n{=(f3):{math:round({tax_covered_amt1}-{a1})}}\n{=(f4):{tax_anti-covered-amt1}}\n{=(f5):{math:round({a1}-{tax_anti-covered-amt1})}}\n{=(f6):{math:round({a2})}}\n{=(f7):{frequency}}\n{=(f8):{math:round({remainder}/{1-tax_rate_remainder})}}\n{=(f9):{math:round(({a2}*{frequency}+{remainder}/{1-tax_rate_remainder})-{a1})}}\n{=(f10):{math:round(({tax_covered_amt1}-{a1})-(({a2}*{frequency}+{remainder}/{1-tax_rate_remainder})-{a1}))}}\n{=(output1):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({replace(k,10^3):{replace(m,10^6):{replace(e,*10^):{f1}}}}/1)}}}}}}}\n{=(output2):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({replace(k,10^3):{replace(m,10^6):{replace(e,*10^):{f2}}}}/1)}}}}}}}\n{=(output3):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({replace(k,10^3):{replace(m,10^6):{replace(e,*10^):{f3}}}}/1)}}}}}}}\n{=(output4):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({replace(k,10^3):{replace(m,10^6):{replace(e,*10^):{f4}}}}/1)}}}}}}}\n{=(output5):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({replace(k,10^3):{replace(m,10^6):{replace(e,*10^):{f5}}}}/1)}}}}}}}\n{=(output6):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({replace(k,10^3):{replace(m,10^6):{replace(e,*10^):{f6}}}}/1)}}}}}}}\n{=(output7):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({replace(k,10^3):{replace(m,10^6):{replace(e,*10^):{f7}}}}/1)}}}}}}}\n{=(output8):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({replace(k,10^3):{replace(m,10^6):{replace(e,*10^):{f8}}}}/1)}}}}}}}\n{=(output9):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({replace(k,10^3):{replace(m,10^6):{replace(e,*10^):{f9}}}}/1)}}}}}}}\n{=(output10):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({replace(k,10^3):{replace(m,10^6):{replace(e,*10^):{f10}}}}/1)}}}}}}}\n{=(exe1):Original amount input: `{output1}`\nAmount expected to pay: `{output2}`\nAmount lost by tax: `{output3}`\nTax rate: `{tax_rate1b}%`\n**If not paid the expected amount**\nAmount user would receive: `{output4}`\nAmount lost by tax: `{output5}`\nTax rate: `{tax_rate1a}%`}\n{=(exe2):Total amount required to pay: `{output1}`\nAmount of each payment: `{output6}`\nFrequency: `{output7}`\nRemainder: `{output8}`\nTax rate for frequencies: `{tax_rate2a}%`\nTax rate for remainder: `{tax_rate_remainder}%`\nTotal amount lost by tax: `{output9}`\nAmount saved: `{output10}`}\n{=(errormsg1):`[ERROR] Argument is empty, provide a value.`}\n{=(errormsg2):`[ERROR] Your first argument can not be negative and no more than 1e12.`}\n{=(errormsg3):`[ERROR] Your first and second arguments can not be negative and no more than 1e12.`}\n{=(errormsg4):Page 1: pay in one go\nformat: `-taxcalc <total amount>`\nPage 2: pay in installments\nformat: `-taxcalc <total amount> <amount of each payment>`}\n{=(errormsg5):{\n \"footer\":{\n \"text\":\"Made by Bloonat!cS. \\u2014 Page 1 of 2\"\n },\n \"fields\":[\n {\n \"name\":\"Syntax Error\",\n \"value\":\"`[ERROR] This doesn't seem like a valid number that I can calculate tax with.`\",\n \"inline\":false\n }\n ],\n \"color\":16760575,\n \"type\":\"rich\",\n \"url\":\"https:\\/\\/dankmemer.lol\\/\",\n \"title\":\"Dank Memer Tax Calculator v2.0\"\n}}\n{=(errormsg6):{\n \"footer\":{\n \"text\":\"Made by Bloonat!cS. \\u2014 Page 2 of 2\"\n },\n \"fields\":[\n {\n \"name\":\"Syntax Error\",\n \"value\":\"`[ERROR] This doesn't seem like a valid number that I can calculate tax with.`\",\n \"inline\":false\n }\n ],\n \"color\":16760575,\n \"type\":\"rich\",\n \"url\":\"https:\\/\\/dankmemer.lol\\/\",\n \"title\":\"Dank Memer Tax Calculator v2.0\"\n}}\n{=(title1):Pay in one go}\n{=(title2):Pay in installments}\n{=(title3):Missing Argument}\n{=(title4):Math Error}\n{=(footer1):Made by Bloonat!cS. — Page 1 of 2}\n{=(footer2):Made by Bloonat!cS. — Page 2 of 2}\n{=(footer3):Made by Bloonat!cS.}\n{=(empty):}\n{=(statement0):{or({a2}<0|{a2}>1000000000000):3|4}}\n{=(statement1):{if({args(2)}!={args(1)}):{statement0}|{if({args(1)}!=):2}}}\n{=(statement2):{or({a1}<0|{a1}>1000000000000):1|{statement1}}}\n{=(display1):{if({args(1)}==):{errormsg1}|{if({statement2}==1):{errormsg2}|{if({statement2}==2):{exe1}|{if({statement2}==3):{errormsg3}|{if({statement2}==4):{exe2}|{errormsg1}}}}}}}\n{=(display2):{if({statement2}==1):{title4}|{if({statement2}==2):{title1}|{if({statement2}==3):{title4}|{if({statement2}==4):{title2}|{title3}}}}}}\n{=(display3):{if({statement2}==1):{empty}|{if({statement2}==2):{empty}|{if({statement2}==3):{empty}|{if({statement2}==4):{empty}|{errormsg4}}}}}}\n{=(display4):{if({statement2}==1):{footer1}|{if({statement2}==2):{footer1}|{if({statement2}==3):{footer2}|{if({statement2}==4):{footer2}|{footer3}}}}}}\n{=(se):{all({output1}==<o error>|{args(1)}!=):{errormsg5}|{all({output6}==<o error>|{output1}!=<o error>|{args(1)}!=):{errormsg6}}}}\n{c:cembed {se}}\n{silent}\n{override}\n{display3}",
"embed": "{\"url\": \"https://dankmemer.lol/\", \"color\": 16760575, \"title\": \"Dank Memer Tax Calculator v2.0\", \"fields\": [{\"name\": \"{display2}\", \"value\": \"{display1}\", \"inline\": false}], \"footer\": {\"text\": \"{display4}\"}}",
"last_fetched": "2026-10-20T22:56:43.522Z"
}