Advertisement
dusturafid

Untitled

Jul 14th, 2020
2,020
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {=(ID):{if({in(k):{args}}==true):{math:trunc({replace(k, ):{args}}*1000)}|{if({in(K):{args}}==true):{math:trunc({replace(k, ):{args}}*1000)}|{if({in(m):{args}}==true):{math:trunc({replace(m, ):{args}}*1000000)}|{if({in(M):{args}}==true):{math:trunc({replace(M, ):{args}}*1000000)}|{args}}}}}}
  2. {=(nn):{math:abs({ID})}}
  3. {=(tt):{if({nn}<=10000):1|{if({nn}<=50000):0.99|{if({nn}<=100000):0.97|{if({nn}<=500000):0.95|{if({nn}<=1000000):0.90|0.85}}}}}}
  4. {=(taxes):{if({tt}==1):0|{if({tt}==0.99):1|{if({tt}==0.97):3|{if({tt}==0.95):5|{if({tt}==0.90):10|15}}}}}}
  5. {=(calc):{math:round({nn}/{tt})}}
  6. {=(rr):{if({nn}=={m:trunc({nn}/1)}):{calc}|{if({nn}=={m:{nn}/1}):{calc}|}}}
  7. {=(takeout):{math:trunc({rr}-{nn})}}
  8. {=(result):{if({args}==):Argument is empty, provide a value.|Amount expected to pay: `{rr}`
  9. Amount lost by tax: `{takeout}`
  10. Tax paid: `{taxes}%`}}
  11.  
  12. {embed(timestamp):now}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement