How do you calculate the coefficient of friction, if it is not given to you? What would the formula be?

It is a measured value. Force friction= mu*normal force. That is the usual method of solving for mu.