the credit calculator

the credit calculator was added in DebtController