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 >>

Options & Futures
Margin Trading: What Is Buying On Margin?
The Basics Buying on margin is borrowing money from a broker to purchase stock. You can think of it as a loan from your brokerage. Margin trading allows you to buy more stock than you'd be able ... 
Trading Strategies
Simulator HowTo Guide: Margin Accounts
Although we've used virtual cash so far in our HowTo Guide, we've dealt with investing from the perspective of an investor trading stock with his/her own money. However, there's ... 
Active Trading Fundamentals
Introduction to Margin Accounts
Find out what your broker is doing with your securities when you invest on margin. 
Options & Futures
Margin Trading: The Dreaded Margin Call
In the previous section, we discussed the two restrictions imposed on the amount you can borrow. First, the initial margin, which is the initial amount you can borrow. Second, the maintenance ... 
Investing Basics
Opening Your First Brokerage Account
Learn what steps you should take before you open your first brokerage account. 
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. 
Investing Basics
What's a Brokerage Account?
A brokerage account is a contractual arrangement between an investor and a licensed securities broker or brokerage. 
Options & Futures
Margin Trading: Conclusion
Here's the bottom line on margin trading: You are more likely to lose lots of money (or make lots of money) when you invest on margin. Now let's recap other key points in this tutorial: ... 
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.

Brokerage Account
An arrangement between an investor and a licensed brokerage firm ... 
Commission
A service charge assessed by a broker or investment advisor in ... 
Margin Call
A broker's demand on an investor using margin to deposit additional ... 
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 ... 
Buying On Margin
The purchase of an asset by paying the margin and borrowing the ...