SAN FRANCISCO — SolarCity, the solar panel company that Elon Musk’s Tesla Motors plans to buy, will take up to $5 million in charges to cover planned layoffs, it said late Wednesday.

It's also cutting the salary of its two co-founders to $1.

The San Mateo, Calif.-based company, which will soon open a solar panel factory at the Riverbend site in Buffalo, N.Y., filed documents with the Securities and Exchange Commission, saying it is cutting operating expenses to match lower guidance for solar panel installations than previously expected. SolarCity did not reveal how many positions it would cut, but expects to incur restructuring charges ranging from about $3 million to $5 million, consisting primarily of severance benefits, it said.

Earlier this month, SolarCity said it plans to install 900 to 1,000 megawatts of rooftop solar panels in 2016, down from its previous guidance of 1,000 to 1,100 megawatts due to low residential bookings. It is not profitable.

SolarCity also reduced salaries of its two co-founders – Lyndon Rive, CEO, and Peter Rive, chief technology officer – to $1 from $275,000 per year as of August 16.

“We fully expect to grow again in 2017, but we must reduce costs in the short term to be in a position to do so,” Kady Cooper, a SolarCity spokeswoman, said in a statement to USA TODAY.

The company had 15,000 workers at the end of last year.

SolarCity (SCTY) shares were down slightly to $23.59 on Wednesday and unchanged after hours.

Musk, chairman of SolarCity and cousin of the co-founders, announced Tesla's plan to buy the company in June. At the time, the visionary CEO and co-founder of PayPal touted the deal as a “no brainer” that would help solve the earth’s climate change problem. The two companies reached a formal, $2.6 billion deal earlier this month. But analysts have been wary.

“We see benefits from a combined solar/storage offering and manufacturing efficiencies, but remain concerned about cash flow and capital needs,” S&P Global Market Intelligence analyst Efraim Levy told USA TODAY earlier this month.

SolarCity leads all other solar panel companies in the U.S., accounting for 34% of home installations, according to GTM.