Understanding how value of unused amount is calculated