Altered the timestamp duration subroutine to include years