On Wed, Mar 13, 2013 at 2:15 AM, John Wiegley <[email protected]> wrote:

>
> I believe you need: (0.3 * account('Income').total)


Wonderful; thanks!

I am planning a few tentative expenses, hence I needed a formulaic method
rather than hard coded transactions and this works well.

In case it helps anyone, I was able to do my tax calculation with these
definitions:

define acc(name) = account(name).total

define depreciation = acc('Assets:Fixed:Computer')*0.3 +
acc('Assets:Fixed:Furniture')*0.05

define profit = acc('Income') - acc('Expenses') - depreciation

2013/3/31
  Tax                                (profit * -0.3)
  BankAccount

Another question: Is there a way to print an expression when ledger is
evaluating the file? I would like to know the value of *profit* for example.

-- 
*Harshad RJ* <http://lavadip.com>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to