Retirement tax questions

It is based on net earnings minus one half of your self employment tax.