Forecasting Dynamic Time Series in the Presence of Deterministic Components