On Sat, Jan 4, 2025 at 9:05 PM Alice Ryhl <al...@ryhl.io> wrote:

> Hi!
>
> I live in Denmark, and under danish law, we must compute capital gains for
> a
> given stock using the average cost basis. To avoid accumulating rounding
> errors,
> this is done by keeping track of the total purchase price rather than the
> price
> per share. When we sell, the gain or loss is computed and rounded to two
> digits,
> and the gain/loss of the year is the sum of those rounded values.
>

Interesting. They specifically state that?



> If I have shares of the same commodity in different banks, the cost basis
> must
> be considered together. But shares that I own are not counted together with
> shares owned by my husband. So for each commodity, I actually need two
> "global"
> counters: the total purchase price of the commodity for each person.
>
> My current plan is to have an account called "Assets:CostBasis:Alice:IUSA"
> that
> keeps track of the total purchase price for the commodity IUSA for Alice.
> Then
> adjust it up or down each time I buy something. I can book the other end
> of the
> transaction to the "Assets:CostBasis" account so that everything sums to
> zero
> and doesn't affect the net worth.
>

I would just write a script that knows about your linked accounts for the
same commodity and that computes the average cost basis across them.
Then when you close positions, use that cost basis (entering it manually).




> Danish law also mandates taxation of unrealized gains on some assets. I'm
> thinking that I can do this by having a transaction at the end of year that
> increases the purchase price to the current market value.
>

That seems right.
MTM like our Section 1256 in the US (e.g., holding a futures position
across the new year).




Thoughts? Is there a better way to do this?
>
> Alice
>
> --
> You received this message because you are subscribed to the Google Groups
> "Beancount" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beancount+unsubscr...@googlegroups.com.
> To view this discussion visit
> https://groups.google.com/d/msgid/beancount/bf6c8b26-e891-4296-a49c-de4bb38b37b9n%40googlegroups.com
> <https://groups.google.com/d/msgid/beancount/bf6c8b26-e891-4296-a49c-de4bb38b37b9n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beancount+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhMwFDpbc-%2BeDR3Ppkxr%2BpPAB%3DZX4KVK-jPWVKsjkf2vag%40mail.gmail.com.

Reply via email to