One way that investors borrow funds from brokerages is through margin accounts; it is these interest charges that allow them to charge such low commission rates.
How do we calculate the interest charges? Well, each brokerage has a different method of calculation, so you should speak to your broker directly. However, you should use this formula as a general rule:
(Interest Rate/365 Days)*(Amount Being Borrowed)*(Number of Days Borrowing Funds)
The easiest way to find out how much you have borrowed is to take the equity in your account and subtract it by the market value. If you have a negative amount, this will be the amount you owe. If it is equal to zero, then you owe nothing, and if it is positive, you will have cash that you should invest somewhere else or take out of the margin account as it generally doesn't pay much interest.
Once again, this is a general approach and does not necessarily reflect the policy of all brokerages. If you want to find out the exact calculations, you're going to have to give them a call.
For further reading on this subject, see our tutorial on Margin Trading.

What happens if I cannot pay a margin call?
Minimum margin is the amount of funds that must be deposited with a broker by a margin account customer. With a margin account, ... Read Answer >> 
What is a margin account?
A margin account is an account offered by brokerages that allows investors to borrow money to buy securities. An investor ... Read Answer >> 
How is margin interest calculated?
Before running a calculation you must first find out what rate your brokerdealer is charging to borrow money. The broker ... Read Answer >> 
How much can I borrow with a margin account?
Understand the basics of margin accounts and buying on margin, including what amount investors can typically borrow for purchases ... Read Answer >> 
What is the interest rate offered on a typical margin account?
Learn about the basics of trading on margin accounts, specifically the rate of interest that is typically charged for margin ... Read Answer >> 
How exactly does buying on margin work and why is it controversial?
Learn how purchasing stock on margin works, and understand the risk associated with margin accounts that make the strategy ... Read Answer >>

Active Trading Fundamentals
Introduction to Margin Accounts
Find out what your broker is doing with your securities when you invest on margin. 
Investing Basics
Opening Your First Brokerage Account
Learn what steps you should take before you open your first brokerage account. 
Investing Basics
What's a Brokerage Account?
A brokerage account is a contractual arrangement between an investor and a licensed securities broker or brokerage. 
Active Trading Fundamentals
Short Selling: What Is Short Selling?
Investopedia Explains: The fundamentals of short selling and the difference between going long or short on an investment. 
Trading Strategies
Margin Investing Gets A Bad Rap, But For The ThrillSeeker, It's Worth It
Investing on margin can be profitable but it's a risky play that needs care. 
Options & Futures
Pick the Right Brokerage Account for Options Trading
Follow these steps to pick the right options brokerage account depending on your trading needs and style of trading. 
Options & Futures
10 Tips For Choosing An Online Broker
This important investment decision happens before you pick your first stock. Find out how to get it right. 
Investing Basics
Understanding Brokerage Fees
Agents charge brokerage fees for facilitating transactions between buyers and sellers. 
Retirement
Is Your 401(k) On Track?
Small adjustments can have a significant impact on your returns. Learn what to watch for. 
Investing
The Most Expensive Brokerage Accounts For Traders
A peek into the brokers whose brokerage charges are higher than average in the stock market world.

Brokerage Account
An arrangement between an investor and a licensed brokerage firm ... 
Commission
A service charge assessed by a broker or investment advisor in ... 
Interest Rate
The amount charged, expressed as a percentage of principal, by ... 
Cash Trading
A method of buying or selling securities by providing the capital ... 
Margin Call
A broker's demand on an investor using margin to deposit additional ... 
Buying On Margin
The purchase of an asset by paying the margin and borrowing the ...