fixed anomaly calculation in daily data