public double maxValueAfter(int i, List<double> data) { // discount are not required to be decreasing--all bets are off. // We choose as max a value very unlikely to be exceeded. return 3.0; // discounts cannot increase //return data[i - 1]; }