Convert holding period return to the effective annual rate
hpr2ear(hpr, t)
hpr
holding period return
t
number of days remaining until maturity
ear
ear2hpr
hpr2ear(hpr=0.015228,t=120)