How do credit companies or banks earn a profit when they loan money?

by selling stock

by taxing accounts

by charging interest

by loaning to everyone