calculate stakes