How to Calculate Finance Charges?

To calculate the finance charges to a loan for example, you have compute the interest plus surcharge in the delay of payments. The result would be the finance charges.