to calculate sth or find the answer to sth
nut sth out
I'm going to have to nut it out on a piece of paper.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition