If I invest a sum of money in stocks mid year, say May, and each month the value changes, and later in the year invest more, say in Nov, how do I calculate the annualized yield to compare performance with another simpler investment? Is there a formula?