How do police officers know how much force to use?

With younger officers just out of the academy, there's a “you don’t disrespect me” attitude instead of “how can I most quickly and calmly get this person to comply.”