Calculating Entropy Of Irreversible Process