Abstract: Systems and methods for drilling a horizontal well. The method compromises estimating the well's position in the target formation using data acquired during the drilling process, data from the nearby wells as well as other relevant data, including, without limitation, seismic, geomodels and structural maps. The method may additionally involve correcting a wellbore trajectory to ensure that the trajectory stays within the target formation.