Added detection for day refPeriod