Husband happy after Divorce reasons

After his Divorce a husband came out of the court jumping,dancing, singing
His friend asked him why he was so happy. He replied "Court has said to pay my wife half of my salary."
Friend asked "Why are you happy?"
He said "From now on I can have half of my salary."