Advertisement
Guest User

South African individual income tax rates 2016

a guest
May 16th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # taxable income
  2. ti(i) = i <= 73650 ? 0 : i - 73650
  3.  
  4. # tax on taxable income
  5. t(ti) = \
  6.   (ti <= 181900) ? \
  7.     0.18 * ti \
  8.   :((ti <= 284100) ? \
  9.     32742 + 0.26 * (ti - 181900) \
  10.   :((ti <= 393200) ? \
  11.     59314 + 0.31 * (ti - 284100) \
  12.   :((ti <= 550100) ? \
  13.     93135 + 0.36 * (ti - 393200) \
  14.   :((ti <= 701300) ? \
  15.     149619 + 0.38 * (ti - 550100) \
  16.   : \
  17.     208587 + 0.41 * (ti - 701300) \
  18.   ))))
  19.  
  20. set arrow from 73650,graph(0,0) to 73650,graph(1,1) nohead
  21. set arrow from 255550,graph(0,0) to 255550,graph(1,1) nohead
  22. set arrow from 357750,graph(0,0) to 357750,graph(1,1) nohead
  23. set arrow from 466850,graph(0,0) to 466850,graph(1,1) nohead
  24. set arrow from 623750,graph(0,0) to 623750,graph(1,1) nohead
  25. set arrow from 774950,graph(0,0) to 774950,graph(1,1) nohead
  26.  
  27. set grid
  28. set xrange [0:1000000]
  29. set yrange [0:350000]
  30. set y2range [0:70]
  31. set y2tics
  32. set samples 100000
  33.  
  34. set title "South African individual income tax rates 2016"
  35. set xlabel "Annual income"
  36. set ylabel "Tax rands"
  37. set y2label "Tax percentage"
  38. set format x '%.0f'
  39. set key opaque
  40.  
  41. set terminal pngcairo enhanced
  42. set output "tax.png"
  43.  
  44. plot t(ti(x)) title "Tax rands" axes x1y1, \
  45.      t(ti(x))/x*100 title "Tax percentage" axes x1y2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement