The numbers guy did the math: Allen Weisselberg — a longtime loyal lieutenant to Donald Trump — could have gotten years in prison if he went to trial and failed to beat tax evasion allegations. But if he agreed to testify in an upcoming trial of the former president’s company, he would probably serve no more than 100 days.

Weisselberg, 75, took the deal Thursday, pleading guilty to 15 counts, including tax fraud and larceny.

Now he’s potentially going to be the star witness against the Trump Organization in a trial over what prosecutors say was a “sweeping and audacious” scheme by the company to help top executives, including Weisselberg, avoid taxes on perks like luxury cars and rent-free apartments.

Also Read| Trump CFO’s plea deal could make him a prosecution witness

Here are the basics of the case and what Weisselberg’s decision to plead guilty means for Donald Trump and his family business.

WHAT WERE ALLEN WEISSELBERG AND THE TRUMP ORGANIZATION ACCUSED OF DOING?

Federal authorities said Weisselberg, the Trump Organization’s longtime chief financial officer, failed to pay taxes on more than $1.7 million worth of compensation.

Among those perks: The Trump Organization paid the rent on his Manhattan apartment, covered private school tuition for his grandchildren, leased Mercedes-Benz cars for him and his wife, gave him cash to hand out as holiday tips and paid for flat-screen TVs, carpeting, and furniture for his winter home in Florida. Weisselberg’s son also didn’t have to pay rent, or paid a below-market rent, while living in Trump-owned apartments.

Also Read| 8 out of 10 Republicans who impeached Trump won’t be in 118th US Congress

SO AFTER ALL THAT — IS ALLEN WEISSELBERG STILL THE CHIEF FINANCIAL OFFICER OF THE TRUMP ORGANIZATION?

Weisselberg is still employed by the Trump Organization, but his title was changed to senior adviser after the July 2021 indictment.

WHY DID ALLEN WEISSELBERG DECIDE TO TAKE A PLEA DEAL?

In the words of Weisselberg’s lawyer, it was time to put an end to the yearslong “legal and personal nightmares it has caused for him and his family.” The Trump Organization seemed to have no hard feelings, calling Weisselberg a “fine and honorable man” who has been “harassed, persecuted and threatened by law enforcement.”

Also Read| What is ‘the great task’? Liz Cheney’s new initiative

WHAT ARE THE TERMS OF ALLEN WEISSELBERG’S PLEA DEAL?

A judge has agreed to sentence Weisselberg to five months at New York’s infamous Rikers Island jail complex. With good behavior, he’ll be eligible for release after little more than three months. He’ll also have to pay nearly $2 million and spend five years on probation. Crucially, though, he must testify truthfully when the Trump Organization goes on trial in October. Weisselberg won’t be formally sentenced until after the trial. Until then, he remains free on bail.

WILL THE TRUMP ORGANIZATION ALSO TAKE A PLEA DEAL?

In its statement, the company said it had done nothing wrong and would “look forward to having our day in court.” Both Weisselberg and the Trump Organization initially pleaded not guilty to the charges, maintaining that the perks were standard for companies and the investigation was politically motivated. Weisselberg’s agreement to testify, though, could substantially harm the company’s defense. That could increase pressure for it to resolve the case without a trial.

Also Read| Cheney to block Trump’s 2024 White House bid with new organisation: Report

WHAT DOES THE TRUMP ORGANIZATION ACTUALLY DO?

It’s a business entity through which Trump manages his many entrepreneurial affairs, including his investments in office towers, hotels and golf courses, his many marketing deals and his television pursuits. It runs golf clubs and hotels, collects checks from companies renting offices, and charges licensing fees to buildings and others for bearing the Trump name.

WHAT DOES THIS MEAN FOR DONALD TRUMP?

It isn’t clear. The Republican isn’t charged in the case. Prosecutors haven’t alleged any personal misconduct by Trump. If his company is convicted of a crime, though, it could lead to steep fines or complicate future business deals. A trial starting in October, right before the midterm elections, could also produce new revelations about the company’s business practices — although Trump’s supporters might not care. He’s said the entire case is being cooked up by Democrats to damage him politically.