That's not the code. Try finding a proper calculator for it.
Really fun game for sure. Would love to see more of it