Compute holding period return from buy and sell prices and dividends received.
輸入買入價、賣出價與期間股息,求持有期收益率。