bug fix in algo for biweekly cycles