Adding function for portfolio rebalancing returns and examples in sandbox