y2d function

Convert a time interval from years to days