Calculate Solution value