Calculation of the magnetoresistance in the Kondo model