S-Corp sells it assets for $5 million. The primary assets are it's intangibles. These are allocated $4.5 million of the deal and will be taxed as a capital gain.
The S-Corp has phantom share agreements with several key employees which will give them 20% ($1 million) of the deal.
On the day of closing, the S-Corp receives the $5 million and immediately pays out the $1 million to the employees.
Is the $1 million deducted against ordinary income or does it reduce the $4.5 million capital gain?