If I have forty thousand and I am in debt for twenty thousand, so, how would I pay zakat?
After paying off the debt whatever is left over, in this case twenty thousand, one must pay zakat on it.
Original Source Link (from Way Back Machine archive)