Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yatesy/a3b494a1f0c7261c53ef7d76bc543fe0 to your computer and use it in GitHub Desktop.
Save yatesy/a3b494a1f0c7261c53ef7d76bc543fe0 to your computer and use it in GitHub Desktop.
Microsoft Excel formula for calculating stamp duty in New South Wales (NSW), Australia. Long form edition without "magic numbers".
=ROUND(IF(A1>3000000,(0.0125*14000)+(0.015*(31000-14000))+(0.0175*(83000-31000)+(0.035*(310000-83000)+(0.045*(1033000-310000))))+(0.055*(3000000-1033000))+0.07*(A1-3000000),IF(A1>1033000,(0.0125*14000)+(0.015*(31000-14000))+(0.0175*(83000-31000)+(0.035*(310000-83000)+(0.045*(1033000-310000))))+0.055*(A1-1033000),IF(A1>310000,(0.0125*14000)+(0.015*(31000-14000))+(0.0175*(83000-31000)+(0.035*(310000-83000)))+0.045*(A1-310000),IF(A1>83000,(0.0125*14000)+(0.015*(31000-14000))+(0.0175*(83000-31000))+0.035*(A1-83000),IF(A1>31000,(0.0125*14000)+(0.015*(31000-14000))+0.0175*(A1-31000),IF(A1>14000,(0.0125*14000)+0.015*(A1-14000),A1*0.0125)))))),)
@yatesy
Copy link
Author

yatesy commented Mar 11, 2021

Modified for the post Jul 2020 rates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment