Calculates the force of static or kinetic friction based on the normal force and coefficient of friction.