In 2019, I spent about a month to write this Python cryptocurrency capital gain tax calculator, with a bleeding heart...

Finally, I published this in github: https://github.com/viewplatgh/pycgt

I wish this can be helpful to those who would have been ever suffering the ridiculous CGT of any disposal of cryptocurrency.