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

        self.currentPeriod = Period(ofDate: self.activeDay)
        // Load new events for new period
        requestEvents()
    }
}


        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

