Fix off-by-one error in finding last day of cycle.