Example 8 : When the interest is compounded half yearly