There are 0 repository under negative-returns topic.
XIRR (using Python) to calculate return on investments done at different time periods which need not be periodic.