Figuring out calculator domain