Changing interest calculation

[ERROR] calculation needs to be reworked.