pub fn predict(history: &[(DateTime<Utc>, f32)], days_ahead: i64) -> Option<f32>
Predict a future value using linear extrapolation.