i found it - function yearfrac.