The CI formula helps to find the interest earned on interest. In compound interest, interest may be compounded annually, half yearly, quarterly, annually with fractional years and annually with different rates at each year. You can find the formula for all type of compounding interest here.
CI is beneficial for any type of savings but it is suggestable for any type of borrowing.