How To Calculate Entropy Of A System