So, a player who has a contract of $5 million per year for fiv years and also had $15million guaranteed as a signing bonus.
So that equates to a 5 year, 40 mill contract.
Player gets 20 mill in year 1.
Cap number is 8 mill per year
After 2 years he gets traded.
Team that trades him takes a 9 mill dead cap hit.
Assuming the contract is fully guaranteed for example purposes, the team that gets the player would normally take the remaining 3 years and 15 mill, (but could be negotiated, trading team could agree to pay x of annual salary)
After year 3, the player gets cut and the team that received the player takes a 6 mill cap hit