fixed time-between for the period type months which wasn't taking year into account