public void OnLoanCommit()
    {
        LoanData data = MarketManager.GetLoanData(toloan);

        GameManager.AdjustCash(data.amount);
        loanButton.interactable = false;
        MarketManager.TakeLoan(toloan);
        //Add expense
        AddExpense(ExpenseType.Loan, Departments.Start, data.amount * (1 + data.interest / 100) / data.term);
        instance.moneyText.text = string.Format("${0:N0}", GameManager.Cash);
        PopulateLoans();
    }
    void PayExpenses()
    {
        for (int i = 0; i < expenses.Count; i++)
        {
            GameManager.AdjustCash(-(expenses[i].amount + expenses[i].amountMod));
        }

        LoanData data = MarketManager.GetLoanData(toloan);

        if (data.taken)
        {
            MarketManager.PayLoanDaily();
            data = MarketManager.GetLoanData(toloan);
            AddExpense(ExpenseType.Loan, Departments.Start, data.amount / data.term);
        }

        PopulateExpense();
    }
    void PopulateLoans()
    {
        int tCount = 0;

        for (int i = 0; i < loanRows.Length; i++)
        {
            var data = MarketManager.GetLoanData(i);
            if (!data.taken)
            {
                loanRows[i].loanName.text    = data.loanName;
                loanRows[i].interest.text    = string.Format("{0:N0}%", data.interest);
                loanRows[i].amountLbl.text   = "Amount";
                loanRows[i].amountValue.text = string.Format("${0:N0}", data.amount);
                loanRows[i].durationLbl.text = "Duration";
                loanRows[i].monthlyCost.text = string.Format("${0:N0}", data.amount * (1 + data.interest / 100) / data.term);
            }
            else
            {
                tCount++;
                loanRows[i].loanName.text      = data.loanName;
                loanRows[i].interest.text      = string.Format("{0:N0}%", data.interest);
                loanRows[i].amountLbl.text     = "Rem. Amt.";
                loanRows[i].amountValue.text   = string.Format("${0:N0}", data.amount);
                loanRows[i].durationLbl.text   = "Rem. Term";
                loanRows[i].durationValue.text = string.Format("{0} days", data.term);
                loanRows[i].monthlyCost.text   = string.Format("${0:N0}", data.amount / data.term);
            }
        }

        if (tCount == 0)
        {
            foreach (var rows in loanRows)
            {
                rows.amountLbl.transform.parent.GetComponent <Toggle>().interactable = true;
            }
        }
        else
        {
            foreach (var rows in loanRows)
            {
                rows.amountLbl.transform.parent.GetComponent <Toggle>().interactable = false;
            }
        }
    }