{"id":125498,"date":"2022-06-07T16:53:03","date_gmt":"2022-06-07T16:53:03","guid":{"rendered":"https:\/\/blog.finxter.com\/?p=410433"},"modified":"2022-06-07T16:53:03","modified_gmt":"2022-06-07T16:53:03","slug":"python-program-zur-berechnung-der-deutschen-einkommensteuer","status":"publish","type":"post","link":"https:\/\/sickgaming.net\/blog\/2022\/06\/07\/python-program-zur-berechnung-der-deutschen-einkommensteuer\/","title":{"rendered":"Python Program zur Berechnung der Deutschen Einkommensteuer"},"content":{"rendered":"<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;}\">\n<div class=\"kksr-stars\">\n<div class=\"kksr-stars-inactive\">\n<div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n<div class=\"kksr-star\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<div class=\"kksr-star\" style=\"padding-right: 5px\">\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/div>\n<div class=\"kksr-legend\"> <span class=\"kksr-muted\">Rate this post<\/span> <\/div>\n<\/div>\n<p>Das folgende Python Program implementiert eine einfache Faustformel zur Berechnung der Einkommensteuer in Deutschland:<\/p>\n<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\/einkommensteuer\/berechnung-formeln\/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>\n<p>Hier ist ein einfaches Schaubild, dass das Verh\u00e4ltnis von zu versteuertem Einkommen (zvE) und der gesch\u00e4tzten Steuerlast darstellt:<\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" 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\/uploads\/2022\/06\/image-73-300x226.png 300w\" sizes=\"auto, (max-width: 753px) 100vw, 753px\" \/><\/figure>\n<p>Der folgende Python code wurde zur Berechnung dieses Schaubilds herangezogen:<\/p>\n<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\nxs = list(range(0, max_income, 1000))\nys = [calc_tax(income) for income in xs] plt.plot(xs, ys)\nplt.xlabel('Einnahmen (T\u20ac)')\nplt.ylabel('Steuer (T\u20ac)')\nplt.grid()\nplt.title('Einkommensteuer in Deutschland')\nplt.show()<\/pre>\n<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>&#8212;es scheint aber relativ korrekt zu sein (Gr\u00f6\u00dfenordnung!). <img decoding=\"async\" src=\"https:\/\/s.w.org\/images\/core\/emoji\/14.0.0\/72x72\/1f642.png\" alt=\"\ud83d\ude42\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rate this post Das folgende Python Program implementiert eine einfache Faustformel zur Berechnung der Einkommensteuer in Deutschland: def calc_tax(zvE): &#8221;&#8217; Formula: https:\/\/www.finanz-tools.de\/einkommensteuer\/berechnung-formeln\/2021 &#8221;&#8217; if zvE &lt;= 9744: return 0 elif zvE &lt;= 14753: y = (zvE &#8211; 9744)\/10000 return (995.21 * y + 1400) * y elif zvE &lt;= 57918: z = (zvE &#8211; 14753)\/10000 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[857],"tags":[73,468,528],"class_list":["post-125498","post","type-post","status-publish","format-standard","hentry","category-python-tut","tag-programming","tag-python","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/125498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/comments?post=125498"}],"version-history":[{"count":0,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/125498\/revisions"}],"wp:attachment":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/media?parent=125498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/categories?post=125498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/tags?post=125498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}