The maximum amount you are eligible to borrow against your home is 80% of the equity you have in your home.
The equity is the difference in your home's value and the remaining mortgage balance, so the formula for your HELOC is:
Your Home's value x 80% - Your remaining mortgage balance.