Bank of America has agreed pay a record settlement of $16.7 billion for misleading investors about the quality of loans…