Hello,
I am trying to use an automated transaction to estimate my tax
liability. Depending on how much I earn, I pay a different percentage.
For reference, here are the current brackets:
;Australia tax brackets (09/10)
;$0 – $6,000 Nil
;$6,001 – $35,000 15c for each $1 over $6,000
;$35,001 – $80,000 $4,350 plus 30c for each $1 over $35,000
;$80,001 – $180,000 $17,850 plus 38c for each $1 over $80,000
;Over $180,000 $55,850 plus 45c for each $1 over $180,000
Just to start with, I am trying to say "if I have so far earned less
than $6000, record $0 tax, otherwise record 15% tax".
The following does not work for me on next-0-g04cfa7a (a recent ledger
3, I think)
; Expected tax liability of $150. Got $0.
= /Income/
Expenses:Tax (account("Income").total < -6000 ? -0.15 : 0)
Liabilities:Tax (account("Income").total < -6000 ? 0.15 : 0)
2010/7/1 Test
Income -$6000
Assets $6000
2010/8/1 Test
Income -$1000
Assets $1000
1) How to do this properly?
2) Is there any documentation on account("") methods, and if not, where
in the source code are they defined?
As a fallback, I am going to estimate how much I will earn this year and
convert that into a non-bracketed percentage.
Cheers,
Xavier