hpr2ear function

Convert holding period return to the effective annual rate