Skip to content

Instantly share code, notes, and snippets.

@pauldwhitman
Last active January 29, 2017 05:53
Show Gist options
  • Save pauldwhitman/5ce62ed528a51abe164fdb9427dc23d0 to your computer and use it in GitHub Desktop.
Save pauldwhitman/5ce62ed528a51abe164fdb9427dc23d0 to your computer and use it in GitHub Desktop.
Microsoft Excel formula for calculating stamp duty in Northern Territory (NT), Australia. They have a curious way of calculating stamp duty below $525,000. Their stamp duty calculator rounds to the nearest 5 cents, so I do too with MROUND().
=MROUND(
IF(A1 > 3000000 , 0.0545 * A1,
IF(A1 > 525000 , 0.0495 * A1,
0.06571441 * (((A1/1000)^2)) + 15 * (A1/1000)))
,0.05)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment