I am trying to create a report that will help me with my tax work. I am importing CSV statements from banks, which give me gross interest for my savings accounts.
Some of those accounts are mine alone, and I am liable for tax on all gross interest. Some, however, are joint, and I am liable for tax on just half of gross interest. Interest transactions are (of course!) not split by bank 50/50; they are often just one lump sum arriving in a single transaction.
I am trying to figure a way to get a report that gives me "the balance of all interest transactions in those accounts, and half of the balance in those other accounts", and I am trying to keep it simple.
My "plan B" is to either write a small haskell script that uses hledger-lib or a small python script that post-processes the output of "hledger balance". Both of these options make me a bit sad.
I wonder if anyone has done anything similar in the past?