             startDate = Calendar.current.date(byAdding: .day, value: 1, to: startDate)!
         }
         let startDateStr = formatter.string(from: startDate)
-        var planStartDate: Date?
-        DiningAPI.instance.getDiningPlanStartDate(diningToken: diningToken) { (startDate) in
-            planStartDate = startDate
-        }
         DiningAPI.instance.getPastDiningBalances(diningToken: diningToken, startDate: startDateStr) { (balances) in
             guard let balances = balances else {
                 return

                  var startSwipeBalance = (self.swipeHistory.max { $0.balance < $1.balance }) else {
                return
            }
            if planStartDate != nil {
                startDollarBalance = (self.dollarHistory.first { $0.date == planStartDate }) ?? startDollarBalance
                startSwipeBalance = (self.swipeHistory.first { $0.date == planStartDate }) ?? startSwipeBalance
            }
            let dollarPredictions = self.getPredictions(firstBalance: startDollarBalance, lastBalance: lastDollarBalance)
            self.dollarSlope = dollarPredictions.slope
            self.dollarPredictedZeroDate = dollarPredictions.predictedZeroDate
            self.predictedDollarSemesterEndBalance = dollarPredictions.predictedEndBalance
            self.dollarAxisLabel = self.getAxisLabelsYX(from: self.dollarHistory)
            let swipePredictions = self.getPredictions(firstBalance: startSwipeBalance, lastBalance: lastSwipeBalance)
            self.swipeSlope = swipePredictions.slope
            self.swipesPredictedZeroDate = swipePredictions.predictedZeroDate
            self.predictedSwipesSemesterEndBalance = swipePredictions.predictedEndBalance
            self.swipeAxisLabel = self.getAxisLabelsYX(from: self.swipeHistory)
        }
    }
    func getPredictions(firstBalance: DiningAnalyticsBalance, lastBalance: DiningAnalyticsBalance) -> (slope: Double, predictedZeroDate: Date, predictedEndBalance: Double) {
        if firstBalance.date == lastBalance.date || firstBalance.balance == lastBalance.balance {
            let zeroDate = Calendar.current.date(byAdding: .day, value: 1, to: Date.endOfSemester)!
            return (Double(0.0), zeroDate, lastBalance.balance)

            var slope = self.getSlope(firstBalance: firstBalance, lastBalance: lastBalance)
            let zeroDate = self.predictZeroDate(firstBalance: firstBalance, lastBalance: lastBalance, slope: slope)
            let endBalance = self.predictSemesterEndBalance(firstBalance: firstBalance, lastBalance: lastBalance, slope: slope)
            let fullSemester = Date.startOfSemester.distance(to: Date.endOfSemester)
            let fullZeroDistance = firstBalance.date.distance(to: zeroDate)
            let deltaX = fullZeroDistance / fullSemester
            let deltaY = firstBalance.balance / maxBalance.balance
            slope = -deltaY / deltaX // Resetting slope to different value for graph format
            return (slope, zeroDate, endBalance)
        }
    }
