# Add proportional income tax (from documentation) hledger print -f- --auto <<< 2016/1/1 paycheck income:remuneration $-100 income:donations $-15 assets:bank 2016/1/1 withdraw assets:cash $20 assets:bank = ^income (liabilities:tax) *.33 ; income tax >>> 2016/01/01 paycheck income:remuneration $-100 (liabilities:tax) $-33 ; income tax income:donations $-15 (liabilities:tax) $-5 ; income tax assets:bank 2016/01/01 withdraw assets:cash $20 assets:bank >>>2 >>>=0 hledger register -f- --auto <<< 2016/1/1 paycheck income:remuneration $-100 income:donations $-15 assets:bank 2016/1/1 withdraw assets:cash $20 assets:bank = ^income (liabilities:tax) *.33 ; income tax >>> 2016/01/01 paycheck income:remuneration $-100 $-100 (liabilities:tax) $-33 $-133 income:donations $-15 $-148 (liabilities:tax) $-5 $-153 assets:bank $115 $-38 2016/01/01 withdraw assets:cash $20 $-18 assets:bank $-20 $-38 >>>2 >>>=0 hledger register -f- --auto <<< = trigger (target) 10 2018/1/1 (trigger) 1 (target) 1 = 11 ; this assertion would not fail, auto posting will be taken into account >>> 2018/01/01 (trigger) 1 1 (target) 10 11 (target) 1 12 >>>2 >>>=0 hledger balance -f- --auto <<< 2016/1/1 paycheck income:remuneration $-100 income:donations $-15 assets:bank 2016/1/1 withdraw assets:cash $20 assets:bank = ^income (liabilities:tax) *.33 ; income tax >>> $115 assets $95 bank $20 cash $-115 income $-15 donations $-100 remuneration $-38 liabilities:tax -------------------- $-38 >>>2 >>>=0