Kevin Durant wants to be in Houston for more than one year. And he left more than $30 million on the bargaining table to make that possible.

Durant has signed a contract extension that could keep the four-time scoring champion and four-time Olympic gold medalist with the Rockets through the 2027-28 season, the team announced Sunday.

It is a two-year extension, the second year at Durant’s option, according to a person who spoke to The Associated Press on condition of anonymity because the Rockets did not disclose those details.

ESPN, which first reported the agreement, cited Durant’s business partner Rich Kleiman and said the deal could be worth $90 million. If Durant plays both seasons as planned, that $90 million would push his on-court earnings to nearly $600 million — which could be an NBA record, depending on how long LeBron James continues to play.

Durant — a 15-time All-Star, one of only seven players in NBA history with that many selections — was eligible for an extension that could have been worth $122 million. He opted for less, a move that will provide the Rockets plenty of flexibility for other deals going forward.

“Generous guy,” Rockets forward Amen Thompson told reporters in Houston on Sunday.

The new deal had been expected since Durant chose to join the Rockets and they swung a trade for him this past summer. Houston was the Western Conference’s No. 2 seed last season after going 52-30, snapping a five-year playoff drought. The Rockets are 93-71 in Ime Udoka’s two seasons as coach, after going 59-177 in the three previous seasons.

“I think we all knew when we traded for him and when he came here it wasn’t a short-term thing,” Udoka said. “Good to get to a point where everybody’s happy and hopefully he finishes his career here.”