Method for calculating the application factor KA in gears subjected to variable working conditions