Determination of tectonic stress from stress measurement at shallow depth, a numerical approach