Worked through the logic on updating the ledger when an expense is entered with a date before the entry with the maximum date. Need to convert to loop and add the update ledger function.