I'm still assuming Gray signed for the Room MLE. Two years.
Landry Fields: $6,333,333 (assumed 19M total)
Amir Johnson $6,050,000
Kyle Lowry $5,750,000
Linas Kleiza $4,600,000
DeMar DeRozan $3,344,250
Jonas Valanciunas: $2,812,200 (cap hold)
Terrence Ross $2,563,320 (120% of rookie scale)
Ed Davis $2,207,040
Quincy Acy $473,604
12th roster slot $473,604
Aaron Gray $2,575,000 (via Room MLE)
Total: $55,169,333 - 2.9M cap space
Total after Gray: $57,744,333 - 0.3M cap space
Total after Gray if TPE kept: $60,556,339 - 2.5M cap defecit
*TPE would be for $2,912,006
Salary Cap: $58.044 million
Tax Threshold: $70.307 million
Amnesty candidates and resultant cap space (before Gray signing):
Numbers listed for before Gray signing, as if he is signed with the Room MLE, he must be signed after all cap space moves are done.
JJ leaving really increases the cap space freed up with a Jose amnesty, although that is seeming more unlikely all the time.
Acy signed, in all likelihood for the minimum.
The 12th roster spot's really just a "roster slot" cap hold. If the Raps want to sign a free agent, that amount can be added to the starting salary. For example, in the Jose amnesty example, the starting salary of the player we sign can actually be about 13.5 million, rather than just 13.0 M, due to their salary replacing the roster slot cap hold. But in trades where the number of players remains the same, we do indeed only have 13.0 M in flexibility in that scenario.
As a note, the Raptors
could choose not to use any more cap space at this point and instead keep their TPE intact. This is unlikely, as they would need to sign Gray or otherwise fill up some of their cap space before officially completing this trade, but it is a possibility, so I've included it.