add duration function
import from R
TIL-specific

periodicity, month time scale, ...