Calculates income.