         if animated {
             scrollingToDay = true
         }
-        dayCollectionView.setContentOffset(CGPoint(x: CGFloat(dayDate.dayInYear)*LayoutVariables.totalDayViewCellWidth,
+        dayCollectionView.setContentOffset(CGPoint(x: calcXOffset(forDay: dayDate.dayInYear),
                                                    y: 0),
                                            animated: animated)
         if !animated {

                                                            width: self.bounds.width,
                                                            height: LayoutVariables.totalContentHeight),
                                              collectionViewLayout: DayCollectionViewFlowLayout())
        dayCollectionView.contentOffset = CGPoint(x: LayoutVariables.totalDayViewCellWidth*CGFloat(DayDate.today.dayInYear), y: 0)
        dayCollectionView.contentSize = CGSize(width: LayoutVariables.totalContentWidth, height: LayoutVariables.totalContentHeight)
        dayCollectionView.delegate = self
        dayCollectionView.dataSource = self

        activeYear += change

        if change < 0 {
            dayCollectionView.contentOffset.x = LayoutVariables.maxOffsetX
        } else if change > 0 {
            dayCollectionView.contentOffset.x = LayoutVariables.minOffsetX
        }
    }

    private func scrollToNearestCell() {

        let xOffset = dayCollectionView.contentOffset.x
        let yOffset = dayCollectionView.contentOffset.y

