How to Calculate hashValue?