How is self-employed income calculated?