fix period to allow using partial months