Retirement tax questions

How is taxable amount of 1099-R figured?