private int getIndexForValuePoint(DateTime date) { return (int) date.Subtract(GetFirstDate()).TotalDays; }