Retirement tax questions

I have a regular Ira and I am 67.  Ive had a CPA do the taxes in the past, he would tell me how much I needed to put in before the deadline.  Trying to figure out how he would come up with the amount he would tell me to make!