06-12-2022, 07:25 AM
Python Program zur Berechnung der Deutschen Einkommensteuer
<div><div class="kk-star-ratings kksr-valign-top kksr-align-left " data-payload="{"align":"left","id":"410433","slug":"default","valign":"top","reference":"auto","count":"0","readonly":"","score":"0","best":"5","gap":"5","greet":"Rate this post","legend":"0\/5 - (0 votes)","size":"24","width":"0","_legend":"{score}\/{best} - ({count} {votes})"}">
<div class="kksr-stars">
<div class="kksr-stars-inactive">
<div class="kksr-star" data-star="1" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" data-star="2" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" data-star="3" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" data-star="4" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" data-star="5" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
</p></div>
<div class="kksr-stars-active" style="width: 0px;">
<div class="kksr-star" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
</p></div>
</div>
<div class="kksr-legend"> <span class="kksr-muted">Rate this post</span> </div>
</div>
<p>Das folgende Python Program implementiert eine einfache Faustformel zur Berechnung der Einkommensteuer in Deutschland:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="python" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">def calc_tax(zvE): ''' Formula: https://www.finanz-tools.de/einkommenste...rmeln/2021 ''' if zvE <= 9744: return 0 elif zvE <= 14753: y = (zvE - 9744)/10000 return (995.21 * y + 1400) * y elif zvE <= 57918: z = (zvE - 14753)/10000 return (208.85 * z + 2397) * z + 950.96 elif zvE <= 274612: return 0.42 * zvE - 9136.63 else: return 0.45 * zvE - 17374.99</pre>
<p>Hier ist ein einfaches Schaubild, dass das Verhältnis von zu versteuertem Einkommen (zvE) und der geschätzten Steuerlast darstellt:</p>
<figure class="wp-block-image size-full"><img loading="lazy" width="753" height="567" src="https://blog.finxter.com/wp-content/uploads/2022/06/image-73.png" alt="" class="wp-image-410436" srcset="https://blog.finxter.com/wp-content/uploads/2022/06/image-73.png 753w, https://blog.finxter.com/wp-content/uplo...00x226.png 300w" sizes="(max-width: 753px) 100vw, 753px" /></figure>
<p>Der folgende Python code wurde zur Berechnung dieses Schaubilds herangezogen:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="python" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">import matplotlib.pyplot as plt max_income = 1*10**5
xs = list(range(0, max_income, 1000))
ys = [calc_tax(income) for income in xs] plt.plot(xs, ys)
plt.xlabel('Einnahmen (T€)')
plt.ylabel('Steuer (T€)')
plt.grid()
plt.title('Einkommensteuer in Deutschland')
plt.show()</pre>
<p>Dies ist nur eine Heuristic von <a href="https://www.finanz-tools.de/einkommensteuer/berechnung-formeln/2021" data-type="URL" data-id="https://www.finanz-tools.de/einkommensteuer/berechnung-formeln/2021" target="_blank" rel="noreferrer noopener">dieser Quelle</a>—es scheint aber relativ korrekt zu sein (Größenordnung!). <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f642.png" alt="?" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p></p>
</div>
https://www.sickgaming.net/blog/2022/06/...mensteuer/
<div><div class="kk-star-ratings kksr-valign-top kksr-align-left " data-payload="{"align":"left","id":"410433","slug":"default","valign":"top","reference":"auto","count":"0","readonly":"","score":"0","best":"5","gap":"5","greet":"Rate this post","legend":"0\/5 - (0 votes)","size":"24","width":"0","_legend":"{score}\/{best} - ({count} {votes})"}">
<div class="kksr-stars">
<div class="kksr-stars-inactive">
<div class="kksr-star" data-star="1" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" data-star="2" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" data-star="3" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" data-star="4" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" data-star="5" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
</p></div>
<div class="kksr-stars-active" style="width: 0px;">
<div class="kksr-star" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
<div class="kksr-star" style="padding-right: 5px">
<div class="kksr-icon" style="width: 24px; height: 24px;"></div>
</p></div>
</p></div>
</div>
<div class="kksr-legend"> <span class="kksr-muted">Rate this post</span> </div>
</div>
<p>Das folgende Python Program implementiert eine einfache Faustformel zur Berechnung der Einkommensteuer in Deutschland:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="python" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">def calc_tax(zvE): ''' Formula: https://www.finanz-tools.de/einkommenste...rmeln/2021 ''' if zvE <= 9744: return 0 elif zvE <= 14753: y = (zvE - 9744)/10000 return (995.21 * y + 1400) * y elif zvE <= 57918: z = (zvE - 14753)/10000 return (208.85 * z + 2397) * z + 950.96 elif zvE <= 274612: return 0.42 * zvE - 9136.63 else: return 0.45 * zvE - 17374.99</pre>
<p>Hier ist ein einfaches Schaubild, dass das Verhältnis von zu versteuertem Einkommen (zvE) und der geschätzten Steuerlast darstellt:</p>
<figure class="wp-block-image size-full"><img loading="lazy" width="753" height="567" src="https://blog.finxter.com/wp-content/uploads/2022/06/image-73.png" alt="" class="wp-image-410436" srcset="https://blog.finxter.com/wp-content/uploads/2022/06/image-73.png 753w, https://blog.finxter.com/wp-content/uplo...00x226.png 300w" sizes="(max-width: 753px) 100vw, 753px" /></figure>
<p>Der folgende Python code wurde zur Berechnung dieses Schaubilds herangezogen:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="python" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">import matplotlib.pyplot as plt max_income = 1*10**5
xs = list(range(0, max_income, 1000))
ys = [calc_tax(income) for income in xs] plt.plot(xs, ys)
plt.xlabel('Einnahmen (T€)')
plt.ylabel('Steuer (T€)')
plt.grid()
plt.title('Einkommensteuer in Deutschland')
plt.show()</pre>
<p>Dies ist nur eine Heuristic von <a href="https://www.finanz-tools.de/einkommensteuer/berechnung-formeln/2021" data-type="URL" data-id="https://www.finanz-tools.de/einkommensteuer/berechnung-formeln/2021" target="_blank" rel="noreferrer noopener">dieser Quelle</a>—es scheint aber relativ korrekt zu sein (Größenordnung!). <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f642.png" alt="?" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p></p>
</div>
https://www.sickgaming.net/blog/2022/06/...mensteuer/