Source: https://money.stackexchange.com/questions/55678/calculating-simple-portfolio-returns-with-rebalancing-or-adding-removing-securit