Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tut] Python Program zur Berechnung der Deutschen Einkommensteuer

#1
Python Program zur Berechnung der Deutschen Einkommensteuer

<div><div class="kk-star-ratings kksr-valign-top kksr-align-left " data-payload="{&quot;align&quot;:&quot;left&quot;,&quot;id&quot;:&quot;410433&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;top&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;count&quot;:&quot;0&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;0\/5 - (0 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\/{best} - ({count} {votes})&quot;}">
<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 &lt;= 9744: return 0 elif zvE &lt;= 14753: y = (zvE - 9744)/10000 return (995.21 * y + 1400) * y elif zvE &lt;= 57918: z = (zvE - 14753)/10000 return (208.85 * z + 2397) * z + 950.96 elif zvE &lt;= 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/
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016