A method for quantifying the gamma-ray burst bias. Application in the redshift range of 0-1.1