year and month calculation from number of seconds