add beforeDay and afteDay