Breaking down a long math calculation

Currently your code shows the total repayable amount of money. I think that it will help if you can explain to me how that relates to the percentage that you seem to desire.