Asphaltene precipitation/deposition is considered a critical issue in the petroleum industry as it causes damages and blockage in various process equipment (e.g., pipe, pump, and vessel) and porous formation. To prevent this obstruction, it seems necessary to attain a reasonable estimate of the precipitation time, in other words, the time of asphaltene stability in crude oils. The gene expression programming (GEP) technique is utilized in this study to develop a correlation for the prediction of this important parameter using real refractive index (RI) data. The independent variables considered for the development of the correlation are the composition of aromatics, saturates, and resins in weight percentage. The predicted outputs show a better match with the real data, compared to the results obtained from other available predictive tools and/or correlations. Besides its simplicity, the developed correlation can have a broad range of applications in oil production plants in order to ensure that proper strategies are determined to avoid asphaltene precipitation/deposition throughout various stages of oil production and processing.