calculate int value, with ace