Could Derek Carr be a post-June 1 cut?

How do retirements factor into the cap?
It's just treated like a cut.