mutation calculation