tc

Privateunrated

Content

62 lines
{=(largs1):{lower:{1}}}
{=(inputz):{replace(÷,/):{replace(x,*):{replace(m,e6):{replace(k,e3):{replace(b,e9):{largs1}}}}}}}
{=(nn):{if({in({m:sgn({inputz})}):-1 0 1}==false):|{m:trunc(abs({inputz}))}}}
{=(tickz):reactu:<a:tickz:814135683571908639>}
{=(wrong):reactu:<:wrong:816660181483388958> <:wrong_1:816659768768856084>}
{=(cros):reactu:<a:cross_1:816429399121330187>}
{=(validinput):{in({m:sgn({nn})}):-1 0 1}}
{=(tt):{if({nn}<=24999):1|{if({nn}<=49999):0.99|{if({nn}<=99999):0.97|{if({nn}<=749999):0.95|{if({nn}<=2499999):0.92|0.85}}}}}}
{=(taxes):{if({tt}==1):0|{if({tt}==0.99):1|{if({tt}==0.97):3|{if({tt}==0.95):5|{if({tt}==0.92):8|15}}}}}}
{=(calc):{math:round({nn}/{tt})}}
{=(rr):{if({nn}=={m:trunc({nn}/1)}):{calc}|{if({nn}=={m:{nn}/1}):{calc}|}}}
{=(txout):{if({validinput}==false):|{m:{rr}-{nn}}}}

{=(largs2):{lower:{2}}}
{=(inputz2):{if({validinput}==false):|{replace(÷,/):{replace(x,*):{replace(m,e6):{replace(k,e3):{replace(b,e9):{largs2}}}}}}}}
{=(inst):{if({inputz2}==):|{if({in({m:sgn({inputz2})}):-1 0 1}==false):|{m:trunc(abs({inputz2}))}}}}

{=(inst.taxrate):{if({inst}<=24999):1|{if({inst}<=49999):0.99|{if({inst}<=99999):0.97|{if({inst}<=749999):0.95|{if({inst}<=2499999):0.92|0.85}}}}}}
{=(taxes2):{if({inst.taxrate}==1):0|{if({inst.taxrate}==0.99):1|{if({inst.taxrate}==0.97):3|{if({inst.taxrate}==0.95):5|{if({inst.taxrate}==0.92):8|15}}}}}}
{=(inst.wo.tax):{m:round({inst}*{inst.taxrate})}}

{=(freq):{if({inst}==):|{m:trunc({nn}/{inst.wo.tax})}}}
{=(remc):{m:{nn}%{inst.wo.tax}}}
{=(ttt):{if({remc}<=24999):1|
{if({remc}<=49999):0.99|{if({remc}<=99999):0.97|{if({remc}<=749999):0.95|{if({remc}<=2499999):0.92|0.85}}}}}}
{=(rem.txrate):{if({ttt}==1):0|{if({ttt}==0.99):1|{if({ttt}==0.97):3|{if({ttt}==0.95):5|{if({ttt}==0.92):8|15}}}}}}
{=(remainder):{m:round({remc}/{ttt})}}
{=(remcleaned):{if({inst}=={m:trunc({inst}/1)}):{remainder}|{if({inst}=={m:{inst}/1}):{remainder}|}}}
{=(remtax):{m:round({remcleaned}-{remc})}}
{=(taxon.inst):{m:{freq}*{inst}*{taxes2}/100}}
{=(totaltax):{m:round({remtax}+{taxon.inst})}}
{=(txsaved):{m:{txout}-{totaltax}}}


{=(NOTE):for number format}
{=(rrorder):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{m:trunc({rr})}}}}}}}
{=(nnorder):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{m:trunc({nn})}}}}}}}
{=(ordtxout):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{m:trunc({txout})}}}}}}}
{=(instord):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{m:trunc({inst})}}}}}}}
{=(rem.order):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{m:trunc({remcleaned})}}}}}}}
{=(totaltxord):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{m:trunc({totaltax})}}}}}}}
{=(txsavedord):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{m:trunc({txsaved})}}}}}}}

{=(NOTE):For emb output cond}
{=():}
{=(error):__**Dank Memer Tax Calculator:-**__
Please provide an input to calculate tax.
**Usage**: `[p]tc <amount> [each payment]`
               `[p]tc <amount>`}
{=(chnl):{channel(id)}}
{=(json1arg):{"url":"https://dankmemer.lol/","title":"Dank Memer Tax Calculator","description":"**Amount expected to pay:** `{rrorder}`\n**Amount given as input:** `{nnorder}`\n**Tax paid:** `{ordtxout}`\n**Tax rate:** `{taxes}%`","timestamp":"{strf:%FT%T}.000Z","footer":{"icon_url":"https://cdn.discordapp.com/icons/721264541715136556/325542be527e6fe05c70b15fbfd92d3c.png?size=1024","text":"Made by ˢʷᶦᶠᵗ "},"color":5727731}}

{=(json2arg):{"url":"https://dankmemer.lol/","title":"Dank Memer Tax Calculator","description":"**Total amount required to pay:** `{nnorder}`\n**Amount of each payment:** `{instord}`\n**Frequency:** `{freq}` (Tax rate: `{taxes2}%`)\n**Remainder:** `{rem.order}` (Tax rate: `{rem.txrate}%`)\n**Total amount lost by tax:** `{totaltxord}`\n**Amount saved:** `{txsavedord}`","timestamp":"{strf:%FT%T}.000Z","footer":{"icon_url":"https://cdn.discordapp.com/icons/721264541715136556/325542be527e6fe05c70b15fbfd92d3c.png?size=1024","text":"Made by ˢʷᶦᶠᵗ "},"color":5727731}}

{{if({nn}!=):{tickz}}}
{{if({1}==):{tickz}}}
{{all({validinput}==false|{1}!=):{wrong}}}
{if({1}==):{error}|{if({validinput}==false):{error}}}
{{all({nn}!=|{2}==):c:cembed {chnl} {json1arg}}}
{{all({nn}!=|{2}!=|{1}=={2}):c:cembed {chnl} {json1arg}}}
{{all({nn}!=|{2}!=|{1}!={2}):c:cembed {chnl} {json2arg}}}
{override}
Raw JSON
{
  "id": 649230,
  "created_at": "2021-03-03T13:00:08.000Z",
  "tag_name": "tc",
  "nsfw": false,
  "owner_id": "623445411201548289",
  "uses": 80,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "721264541715136556",
  "sharer": "623445411201548289",
  "content": "{=(largs1):{lower:{1}}}\n{=(inputz):{replace(÷,/):{replace(x,*):{replace(m,e6):{replace(k,e3):{replace(b,e9):{largs1}}}}}}}\n{=(nn):{if({in({m:sgn({inputz})}):-1 0 1}==false):|{m:trunc(abs({inputz}))}}}\n{=(tickz):reactu:<a:tickz:814135683571908639>}\n{=(wrong):reactu:<:wrong:816660181483388958> <:wrong_1:816659768768856084>}\n{=(cros):reactu:<a:cross_1:816429399121330187>}\n{=(validinput):{in({m:sgn({nn})}):-1 0 1}}\n{=(tt):{if({nn}<=24999):1|{if({nn}<=49999):0.99|{if({nn}<=99999):0.97|{if({nn}<=749999):0.95|{if({nn}<=2499999):0.92|0.85}}}}}}\n{=(taxes):{if({tt}==1):0|{if({tt}==0.99):1|{if({tt}==0.97):3|{if({tt}==0.95):5|{if({tt}==0.92):8|15}}}}}}\n{=(calc):{math:round({nn}/{tt})}}\n{=(rr):{if({nn}=={m:trunc({nn}/1)}):{calc}|{if({nn}=={m:{nn}/1}):{calc}|}}}\n{=(txout):{if({validinput}==false):|{m:{rr}-{nn}}}}\n\n{=(largs2):{lower:{2}}}\n{=(inputz2):{if({validinput}==false):|{replace(÷,/):{replace(x,*):{replace(m,e6):{replace(k,e3):{replace(b,e9):{largs2}}}}}}}}\n{=(inst):{if({inputz2}==):|{if({in({m:sgn({inputz2})}):-1 0 1}==false):|{m:trunc(abs({inputz2}))}}}}\n\n{=(inst.taxrate):{if({inst}<=24999):1|{if({inst}<=49999):0.99|{if({inst}<=99999):0.97|{if({inst}<=749999):0.95|{if({inst}<=2499999):0.92|0.85}}}}}}\n{=(taxes2):{if({inst.taxrate}==1):0|{if({inst.taxrate}==0.99):1|{if({inst.taxrate}==0.97):3|{if({inst.taxrate}==0.95):5|{if({inst.taxrate}==0.92):8|15}}}}}}\n{=(inst.wo.tax):{m:round({inst}*{inst.taxrate})}}\n\n{=(freq):{if({inst}==):|{m:trunc({nn}/{inst.wo.tax})}}}\n{=(remc):{m:{nn}%{inst.wo.tax}}}\n{=(ttt):{if({remc}<=24999):1|\n{if({remc}<=49999):0.99|{if({remc}<=99999):0.97|{if({remc}<=749999):0.95|{if({remc}<=2499999):0.92|0.85}}}}}}\n{=(rem.txrate):{if({ttt}==1):0|{if({ttt}==0.99):1|{if({ttt}==0.97):3|{if({ttt}==0.95):5|{if({ttt}==0.92):8|15}}}}}}\n{=(remainder):{m:round({remc}/{ttt})}}\n{=(remcleaned):{if({inst}=={m:trunc({inst}/1)}):{remainder}|{if({inst}=={m:{inst}/1}):{remainder}|}}}\n{=(remtax):{m:round({remcleaned}-{remc})}}\n{=(taxon.inst):{m:{freq}*{inst}*{taxes2}/100}}\n{=(totaltax):{m:round({remtax}+{taxon.inst})}}\n{=(txsaved):{m:{txout}-{totaltax}}}\n\n\n{=(NOTE):for number format}\n{=(rrorder):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{m:trunc({rr})}}}}}}}\n{=(nnorder):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{m:trunc({nn})}}}}}}}\n{=(ordtxout):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{m:trunc({txout})}}}}}}}\n{=(instord):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{m:trunc({inst})}}}}}}}\n{=(rem.order):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{m:trunc({remcleaned})}}}}}}}\n{=(totaltxord):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{m:trunc({totaltax})}}}}}}}\n{=(txsavedord):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{m:trunc({txsaved})}}}}}}}\n\n{=(NOTE):For emb output cond}\n{=():}\n{=(error):__**Dank Memer Tax Calculator:-**__\nPlease provide an input to calculate tax.\n**Usage**: `[p]tc <amount> [each payment]`\n               `[p]tc <amount>`}\n{=(chnl):{channel(id)}}\n{=(json1arg):{\"url\":\"https://dankmemer.lol/\",\"title\":\"Dank Memer Tax Calculator\",\"description\":\"**Amount expected to pay:** `{rrorder}`\\n**Amount given as input:** `{nnorder}`\\n**Tax paid:** `{ordtxout}`\\n**Tax rate:** `{taxes}%`\",\"timestamp\":\"{strf:%FT%T}.000Z\",\"footer\":{\"icon_url\":\"https://cdn.discordapp.com/icons/721264541715136556/325542be527e6fe05c70b15fbfd92d3c.png?size=1024\",\"text\":\"Made by ˢʷᶦᶠᵗ \"},\"color\":5727731}}\n\n{=(json2arg):{\"url\":\"https://dankmemer.lol/\",\"title\":\"Dank Memer Tax Calculator\",\"description\":\"**Total amount required to pay:** `{nnorder}`\\n**Amount of each payment:** `{instord}`\\n**Frequency:** `{freq}` (Tax rate: `{taxes2}%`)\\n**Remainder:** `{rem.order}` (Tax rate: `{rem.txrate}%`)\\n**Total amount lost by tax:** `{totaltxord}`\\n**Amount saved:** `{txsavedord}`\",\"timestamp\":\"{strf:%FT%T}.000Z\",\"footer\":{\"icon_url\":\"https://cdn.discordapp.com/icons/721264541715136556/325542be527e6fe05c70b15fbfd92d3c.png?size=1024\",\"text\":\"Made by ˢʷᶦᶠᵗ \"},\"color\":5727731}}\n\n{{if({nn}!=):{tickz}}}\n{{if({1}==):{tickz}}}\n{{all({validinput}==false|{1}!=):{wrong}}}\n{if({1}==):{error}|{if({validinput}==false):{error}}}\n{{all({nn}!=|{2}==):c:cembed {chnl} {json1arg}}}\n{{all({nn}!=|{2}!=|{1}=={2}):c:cembed {chnl} {json1arg}}}\n{{all({nn}!=|{2}!=|{1}!={2}):c:cembed {chnl} {json2arg}}}\n{override}",
  "embed": "{}",
  "last_fetched": "2026-10-20T15:30:27.152Z"
}