Margin fix in time series