My question involves landlord-tenant law in the State of: Pennsylvania.

A tenant broke his lease by moving out almost a half of a year early on a year long lease. I thought that there may be some amount that I could withhold from his deposit for the work of vetting and signing a new tenant. All I could find with a web search was a page that said that the deposit could be withheld for breach of the lease in Pennsylvania. It was vague as to the type of breach and if it was the whole deposit or not. I did rerent the unit quickly and there was no loss of rent. So, can I withhold all, some, or any of the deposit for the time spent getting a new tenant?