Calculate Entropy Of System