hpr function

Computing HPR, the holding period return