Calculate the present value of the debt of 5m to be paid in 3 years’ time at a 10% discount rate, add on the present value of the interest to be paid over the next three years. The two combined amounts equal the liability element of the mixed or compound instrument.
Then, as each year goes by, unwind the discount by the same rate at which you discounted it ie, at 10%.