File:ESt D Auswirkung Splitting Tarif 2022 (Vergleich 1) zvE bis 650000.svg

Original file(SVG file, nominally 1,440 × 810 pixels, file size: 120 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary edit

Description
Deutsch: Auswirkung des Ehegattensplittings in Deutschland 2022 („Splittingvorteil“) in Abhängigkeit von der Aufteilung der beiden Einkommen und der Höhe des Gesamteinkommens. Der Differenzbetrag ergibt sich hier aus dem Vergleich der Situation vor der Eheschließung mit der Situation danach, wenn die Aufteilung der Einkommen gleich bleibt.
Date
Source Own work
Author Udo.Brechtel
# Python 3.9.2

import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt

#from math import ceil, floor

from est_tarife import ESt, Grundfreibetrag

import locale
# Umstellung auf Deutsch:
locale.setlocale(locale.LC_ALL, 'de_DE.utf8')

# generelle Schrift
font = {'family': 'sans serif',
        'weight': 'normal',
        'style':  'normal',
        'size':   '12'}
mpl.rc('font', **font)
# x/y-Achsen
mpl.rc('xtick', labelsize=16)
mpl.rc('ytick', labelsize=16)

anteil_list = [100, 90, 80, 70, 60]
label_list_1 = [f"{anteil}% : {100-anteil}%" for anteil in anteil_list]
label_list_1[0] = label_list_1[0]+" (Alleinverdienerehe)"
    
label_list_2 = [f"{anteil}% : {100-anteil}%" for anteil in anteil_list]
label_list_2[0] = label_list_2[0]+" (mit zusätzlichem Grundfreibetrag)"

color_list = ['darkviolet', 'green', 'cyan', 'darkorange', 'gold']


def init_plot():
    fig = plt.figure(figsize=(16.0, 9.0), dpi=75)
    plt.suptitle("Einkommensteuer Deutschland")
    ax = fig.add_subplot(111) #ZeilenSpaltenPos
    axr = ax.twinx()
    ax.minorticks_on()
    axr.minorticks_on()
    ax.text(-60000,-5000, f'CC BY-SA 4.0, Udo Brechtel, {jahr}', fontsize=8, fontweight='normal', color='black')
    
    return ax, axr

samples = 1000
xmin = 0; xmax = 650000
ymin = 0; ymax =  20000


# Vergleich vor und nach Eheschließung (aktuelle Rechtslage)
def plot_splitting_differenz_vergleich_1(jahr):
    print("plot vgl 1")
    ax, axr = init_plot()
    
    X = np.arange(xmin, xmax, xmax/samples)

    ax.set_title(f"Auswirkung Splitting Tarif {jahr} (Vergleich 1)", horizontalalignment='center', y=1.03, fontsize=20, fontweight='bold')    
    
    ax.set_xlabel('Jährlich zu versteuerndes Einkommen in Euro', fontsize=18, fontweight='bold', labelpad=10)
    ax.set_ylabel('Differenzbetrag bzw. „Splittingvorteil“ in Euro', fontsize=18, fontweight='bold', labelpad=10)
    
    # Plotten
    for i in range(0, len(anteil_list)):
        print(label_list_2[i])
        anteil_A = anteil_list[i] / 100
        anteil_B = 1 - anteil_A
        Y = [ESt(x*anteil_A, 0, jahr) + ESt(x*anteil_B, 0, jahr) - ESt(x, 1, jahr) for x in X]
        ax.plot(X, Y, lw=2, c=color_list[i], label=label_list_1[i])
        if i == 0:
            set_text(ax, X, Y, 350)
            set_text(ax, X, Y, -1, -5000)
     
    ax.legend(loc='upper left', fontsize=16, borderpad=0.8, labelspacing=1)
    ax.grid(lw=0.5, ls=':')
    
    set_xticks_and_xticklabels(ax, xmin, xmax)
    set_yticks_and_yticklabels(ax, axr, ymax)
    
    plt.tight_layout()
    
    plt.savefig(f'bilder/Auswirkung Splitting Tarif {jahr} (Vergleich 1) zvE bis {xmax}.svg')
    
    #plt.show()
    plt.close()

# Vergleich Abschaffung oder Beibehaltung des Ehegattensplittings
def stb0_mit_zusatz_gfb(zveA, zveB, jahr):
    # zveA > zveB !!!
    if zveA < zveB:
        print("# zveA > zveB !!!", zveA > zveB)
        quit()
    GFB = Grundfreibetrag(jahr)
    if zveA > GFB:
        # von B nicht ausgeschöpfter Teil des GFB wird auf A übertragen
        zveAx = zveA - max(0, GFB - zveB)
        zveBx = zveB 
        stb0 = ESt(zveAx, 0, jahr) + ESt(zveBx, 0, jahr)
    else:
        stb0 = 0
    return stb0

def plot_splitting_differenz_vergleich_2(jahr):
    print("plot vgl 2")
    ax, axr = init_plot()
    
    X = np.arange(xmin, xmax, xmax/samples)

    ax.set_title(f"Auswirkung Splitting Tarif {jahr} mit zusätzlichem Grundfreibetrag (Vergleich 2)", horizontalalignment='center', y=1.03, fontsize=20, fontweight='bold')
    
    ax.set_xlabel('Jährlich zu versteuerndes Einkommen in Euro', fontsize=18, fontweight='bold', labelpad=10)
    ax.set_ylabel('Differenzbetrag bzw. „Splittingvorteil“ in Euro', fontsize=18, fontweight='bold', labelpad=10)
    
    # Plotten
    # Zum Vergleich ohne zusätzlichen Grundfreibetrag
    Y = [ESt(x, 0, jahr) - ESt(x, 1, jahr) for x in X]
    ax.plot(X, Y, ls='--', c=color_list[0], label="100% : 0% (ohne Grundfreibetrag zum Vergleich)")
    set_text(ax, X, Y, 350)
    set_text(ax, X, Y, -1, -5000)
    
    for i in range(0, len(anteil_list)):
        print(label_list_2[i])
        anteil_A = anteil_list[i] / 100
        anteil_B = 1 - anteil_A
        Y = [stb0_mit_zusatz_gfb(x*anteil_A, x*anteil_B, jahr) - ESt(x, 1, jahr) for x in X]
        ax.plot(X, Y, lw=2, c=color_list[i], label=label_list_2[i])
        
        if i == 0:
            set_text(ax, X, Y, 350)
            set_text(ax, X, Y, -1, -5000)
    
    ax.legend(loc='upper left', fontsize=16, borderpad=0.8, labelspacing=1)
    ax.grid(lw=0.5, ls=':')
    
    set_xticks_and_xticklabels(ax, xmin, xmax)
    set_yticks_and_yticklabels(ax, axr, ymax)
    
    plt.tight_layout()
    
    plt.savefig(f"bilder/Auswirkung Splitting Tarif {jahr} mit zusätzlichem Grundfreibetrag (Vergleich 2) zvE bis {xmax}.svg")
    
    #plt.show()
    plt.close()
    
def set_text(ax, X, Y, i, dx=0):
    label_i = locale.format_string('%d €', Y[i], True)
    ax.text(X[i]+dx, Y[i]+300, label_i, ha='right', va='bottom', fontsize=16, fontweight='bold',
            bbox={'facecolor':'white', 'edgecolor':"gray", 'boxstyle':'round,pad=0.3'})
    
def set_xticks_and_xticklabels(ax, xmin, xmax):
    
    ax.tick_params(axis='both', pad=10)
    
    xticks = [x for x in range(xmin, xmax+1, 50000)]
    xticklabels = [locale.format_string('%d', x, True) for x in xticks]
    ax.set_xticks(xticks)
    ax.set_xticklabels(xticklabels, rotation=90)
    
    ax.set_xlim(xticks[0], xticks[-1])

def set_yticks_and_yticklabels(ax, axr, y_max):
    
    ax.tick_params(axis='y', pad=10)
    axr.tick_params(axis='y', pad=10)
    
    yticks = [y for y in range(0, y_max+1, 5000)]
    print(yticks)
    yticklabels = [locale.format_string('%d', y, True) for y in yticks]
    ax.set_yticks(yticks)
    axr.set_yticks(yticks)
    ax.set_yticklabels(yticklabels)
    axr.set_yticklabels(yticklabels)
    zusatz_y = 1000
    ax.set_ylim(0, yticks[-1]+zusatz_y)
    axr.set_ylim(0, yticks[-1]+zusatz_y)
    
    
# Tabellen generieren

def write_wiki_table_vergleich_1(jahr):
    ffn1 = f"tabellen/tabelle_splittingvorteil_vergleich_1_{jahr}.txt"
    print(ffn1)
    with open(ffn1, "w") as f:
        f.write('{&#x7C; class="wikitable" style="text-align:center"\n')
        f.write(f'! zvE !! Grundtabelle {jahr}<br />Steuer !! Splittingtabelle {jahr}<br />Steuer !! absolute<br />Ersparnis !! relative<br />Ersparnis\n')
        f.write('&#x7C;-\n')
        for zve in range(15000, 25001, 5000):
            write_row_1(f, zve, jahr)
        for zve in range(30000, 60001, 10000):
            write_row_1(f, zve, jahr)
        for zve in range(100000, 200001, 50000):
            write_row_1(f, zve, jahr)
        for zve in range(400000, 800001, 200000):
            write_row_1(f, zve, jahr)
        f.write('&#x7C;}')
    return

def write_wiki_table_vergleich_2(jahr):
    ffn2 = f"tabellen/tabelle_splittingvorteil_vergleich_2_{jahr}.txt"
    print(ffn2)
    with open(ffn2, "w") as f:
        f.write('{&#x7C; class="wikitable" style="text-align:center"\n')
        f.write(f'! zvE !! Grundtabelle {jahr}<br />mit zusätzlichem<br />Grundfreibetrag !! Splittingtabelle {jahr}<br />Steuer !! absolute<br />Ersparnis !! relative<br />Ersparnis\n')
        f.write('&#x7C;-\n')
        for zve in range(20000, 30001, 5000):
            write_row_2(f, zve, jahr)
        for zve in range(40000, 60001, 10000):
            write_row_2(f, zve, jahr)
        for zve in range(100000, 200001, 50000):
            write_row_2(f, zve, jahr)
        for zve in range(400000, 800001, 200000):
            write_row_2(f, zve, jahr)
        f.write('&#x7C;}')
    return

def write_row_1(f, zve, jahr):
    stb_grund = ESt(zve, 0, jahr)
    stb_split = ESt(zve, 1, jahr)
    diff_abs  = stb_grund - stb_split
    diff_rel  = 100 * diff_abs / stb_grund
    zve_str       = locale.format_string('%g €', zve, True)
    stb_grund_str = locale.format_string('%g €', stb_grund, True)
    stb_split_str = locale.format_string('%g €', stb_split, True)
    diff_abs_str  = locale.format_string('%g €', diff_abs, True)
    diff_rel_str  = locale.format_string('%.1f %%', diff_rel, True)
    f.write(f"&#x7C; {zve_str} &#x7C;&#x7C; {stb_grund_str} &#x7C;&#x7C; {stb_split_str} &#x7C;&#x7C; {diff_abs_str} &#x7C;&#x7C; {diff_rel_str} \n")
    f.write("&#x7C;-\n")
    print(f"&#x7C; {zve_str} &#x7C;&#x7C; {stb_grund_str} &#x7C;&#x7C; {stb_split_str} &#x7C;&#x7C; {diff_abs_str} &#x7C;&#x7C; {diff_rel_str} \n")

def write_row_2(f, zve, jahr):
    GFB       = Grundfreibetrag(jahr)
    #print(GFB)
    stb_grund = ESt(zve - GFB, 0, jahr)
    stb_split = ESt(zve, 1, jahr)
    diff_abs  = stb_grund - stb_split
    #diff_rel  = 100 * diff_abs / stb_grund
    zve_str       = locale.format_string('%g €', zve, True)
    stb_grund_str = locale.format_string('%g €', stb_grund, True)
    stb_split_str = locale.format_string('%g €', stb_split, True)
    diff_abs_str  = locale.format_string('%g €', diff_abs, True)
    #diff_rel_str  = locale.format_string('%.1f %%', diff_rel, True)
    f.write(f"&#x7C; {zve_str} &#x7C;&#x7C; {stb_grund_str} &#x7C;&#x7C; {stb_split_str} &#x7C;&#x7C; {diff_abs_str} \n")
    f.write("&#x7C;-\n")
    print(f"&#x7C; {zve_str} &#x7C;&#x7C; {stb_grund_str} &#x7C;&#x7C; {stb_split_str} &#x7C;&#x7C; {diff_abs_str} \n")

# RUN
jahr = 2022

plot_splitting_differenz_vergleich_1(jahr)
plot_splitting_differenz_vergleich_2(jahr)

write_wiki_table_vergleich_1(jahr)
write_wiki_table_vergleich_2(jahr) 

#EOF

Licensing edit

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current07:56, 11 September 2022Thumbnail for version as of 07:56, 11 September 20221,440 × 810 (120 KB)Udo.Brechtel (talk | contribs){{Information |Description={{de|1=Auswirkung des Ehegattensplittings in Deutschland 2022 („Splittingvorteil“) in Abhängigkeit von der Aufteilung der beiden Einkommen und der Höhe des Gesamteinkommens. Der Differenzbetrag ergibt sich hier aus dem Vergleich der Situation vor der Eheschließung mit der Situation danach, wenn die Aufteilung der Einkommen gleich bleibt.}} |Source={{own}} |Date=2022-09-11 |Author= Udo.Brechtel |Permission= |other_versions= }} <syntaxhighlight...

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata