Baytex Energy Corp. (TSX:BTE)(NYSE:BTE) was pretty much left for dead in January when it traded below $2 per share, but the stock has more than doubled off those lows, and investors are wondering if the rally can continue.

Let’s take a look at the current situation to see if Baytex deserves to be in your portfolio.

Debt situation

Baytex finished Q4 2015 with long-term debt of $1.88 billion and net debt of $2.05 billion. That’s a heavy load for a company with a market capitalization of $1 billion, but the situation isn’t quite as bleak as it looks.

None of the long-term debt is due before 2021, and the company has about $820 million available in undrawn credit facilities that don’t mature until June 2019.

Many energy companies are working with their banks to relax covenants in their credit facilities with various measures of success. Baytex has done a good job of being proactive throughout the oil rout and managed to get its lending syndicate to adjust the terms twice in 2015.

This is important for investors because it means the banks see value in the underlying assets of the company.

What is Baytex worth?

In the Q4 2015 report, Baytex said its estimated net asset value discounted at 10% is $11.05 per share. This is based on an estimated reserve value of $4.3 billion plus extra value for undeveloped land, net of long-term debt, asset retirement obligations, and working capital.

At the time of writing, the stock is trading at $4.40 per share, so there is another 150% upside potential right there if the valuation estimate is reasonable in the current environment.

Cost controls and production outlook

Management is doing a good job of adjusting expenses to ensure the company can survive the rout. The 2016 exploration and capital budget has been slashed by a further 33% and is expected to be $225-265 million with 95% of the investment going toward the company’s Eagle Ford assets.

Production guidance for 2016 is 68,000-72,000 barrels of oil equivalent per day (boe/d), down from the 84,648 boe/d produced in 2015, which means cash flow will remain under pressure if oil prices don’t recover.

Should you buy Baytex?

If you believe oil prices have bottomed out, Baytex is a good way to play a recovery in the sector. The company is not at risk of going bust in the near term, and the upside potential remains significant on a continued oil rally. Remember, this was a $48 stock less than 18 months ago.

At some point I think Baytex will be bought out, which would add an extra pop to the share price, especially if suitors start to line up to get their hands on the company’s attractive properties.

While another 100% move is certainly possible, investors should wade in carefully just in case the latest oil rally is a head fake.

Just released! One top stock for 2016 and beyond

Exports of liquefied natural gas could be one of the best growth opportunities out there for long-term investors. And, we think we've identified the Canadian company to invest in. It's a global company with operations across nearly 20 countries and 70 locations. We like it so much, we've named it as 1 Top Stock for 2016 and Beyond. To find out why, click here now to learn how to access your FREE copy today!

NEW! This Stock Could Be Like Buying Amazon In 1997

For only the 5th time in over 14 years, Motley Fool co-founder David Gardner just issued a Buy Recommendation on this recent Canadian IPO.

Stock Advisor Canada’s Chief Investment Adviser, Iain Butler, also recommended this company back in March – and it’s already up a whopping 57%!

Enter your email address below to claim your copy of this brand new report, “Breakthrough IPO Receives Rare Endorsement.”

Fool contributor Andrew Walker has no position in any stocks mentioned.