{"id":361856,"date":"2024-05-21T01:22:30","date_gmt":"2024-05-21T01:22:30","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=361856"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=361856","title":{"rendered":"<span>\u0413\u0434\u0435 \u0432 \u0417\u0430\u043f\u0430\u0434\u043d\u043e\u0439 \u0415\u0432\u0440\u043e\u043f\u0435 \u0441\u0430\u043c\u044b\u0439 \u043d\u0438\u0437\u043a\u0438\u0439 \u041d\u0414\u0424\u041b?<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0437\u0430\u043f\u0430\u0434\u043d\u044b\u0445 \u0441\u0442\u0440\u0430\u043d \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u0430\u044f \u0448\u043a\u0430\u043b\u0430 \u043d\u0430\u043b\u043e\u0433\u043e\u043e\u0431\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u043e \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0445\u043e\u0434\u0438\u0442 \u043c\u043d\u043e\u0433\u043e \u043b\u0435\u0433\u0435\u043d\u0434 (\u0432\u043f\u043e\u043b\u043d\u0435 \u043e\u0431\u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0445, \u043d\u043e \u0435\u0441\u0442\u044c \u043d\u044e\u0430\u043d\u0441\u044b) \u043a\u0430\u043a\u0438\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u043d\u0430\u043b\u043e\u0433\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u0420\u043e\u0441\u0441\u0438\u0435\u0439 \u0441 \u043f\u043b\u043e\u0441\u043a\u043e\u0439 \u0448\u043a\u0430\u043b\u043e\u0439 13%. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043e\u0431\u0437\u043e\u0440\u043d\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0434\u0435\u0441\u044f\u0442\u0438 \u0441\u0442\u0440\u0430\u043d \u0415\u0432\u0440\u043e\u043f\u044b (\u0432 \u0446\u0435\u043b\u044f\u0445 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u0430\u043d\u044b \u0417\u0430\u043f\u0430\u0434\u043d\u043e\u0439 \u0415\u0432\u0440\u043e\u043f\u044b \u0438 \u0438\u0437 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u0440\u043b\u0438\u043a\u043e\u0432\u044b\u0435 \u0433\u043e\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0428\u0432\u0435\u0439\u0446\u0430\u0440\u0438\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0442\u0430\u043c \u0432\u0441\u0451 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0441\u043b\u043e\u0436\u043d\u043e): \u0424\u0440\u0430\u043d\u0446\u0438\u044f, \u0413\u0435\u0440\u043c\u0430\u043d\u0438\u044f, \u0418\u0442\u0430\u043b\u0438\u044f, \u0418\u0441\u043f\u0430\u043d\u0438\u044f, \u0418\u0440\u043b\u0430\u043d\u0434\u0438\u044f, \u041d\u0438\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u044b, \u0411\u0435\u043b\u044c\u0433\u0438\u044f, \u041f\u043e\u0440\u0442\u0443\u0433\u0430\u043b\u0438\u044f, \u0410\u0432\u0441\u0442\u0440\u0438\u044f, \u0412\u0435\u043b\u0438\u043a\u043e\u0431\u0440\u0438\u0442\u0430\u043d\u0438\u044f.<\/p>\n<p>\u0420\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u041d\u0414\u0424\u041b. \u041d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u044d\u0442\u043e \u0441\u0430\u043c\u044b\u0439 \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u043d\u0430\u043b\u043e\u0433, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0435\u043d\u0441\u0438\u043e\u043d\u043d\u044b\u0435, \u0441\u0442\u0440\u0430\u0445\u043e\u0432\u044b\u0435 \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u043e\u0442\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 \u043d\u0435\u043a\u0443\u044e \u0442\u0432\u0451\u0440\u0434\u0443\u044e \u0441\u0443\u043c\u043c\u0443 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0435\u043d\u0441\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0431\u0443\u0434\u0435\u0442 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0432 \u0441\u0442\u0430\u0440\u043e\u0441\u0442\u0438). \u0410 \u0432\u043e\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u041d\u0414\u0424\u041b \u0438\u0434\u0451\u0442 \u0432 \u043d\u0435\u043a\u0438\u0439 &#171;\u043e\u0431\u0449\u0438\u0439 \u043a\u043e\u0442\u0451\u043b&#187;, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0442\u043e\u043c \u0444\u0438\u043d\u0430\u043d\u0441\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e, \u043e\u0440\u0433\u0430\u043d\u044b \u043f\u0440\u0430\u0432\u043e\u043f\u043e\u0440\u044f\u0434\u043a\u0430, \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0442. \u0434. \u0427\u0438\u0442\u0430\u0442\u0435\u043b\u044f\u043c \u0441\u0442\u0430\u0442\u044c\u0438 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432 \u0443\u043c\u0435, \u0447\u0442\u043e \u0432 \u0415\u0432\u0440\u043e\u043f\u0435 \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u0443\u043c\u043c\u0443 \u0437\u0430\u0440\u043f\u043b\u0430\u0442\u044b \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e \u0432\u044b\u0447\u0435\u0442\u0430 \u041d\u0414\u0424\u041b, \u043d\u043e \u0438 \u0434\u043e \u0432\u044b\u0447\u0435\u0442\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u043e\u0442\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0430\u043d\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043e\u0446\u0435\u043d\u043a\u0438 \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u0439 \u0441\u0443\u043c\u043c\u044b \u043a \u0432\u044b\u043f\u043b\u0430\u0442\u0435 \u043d\u0430 \u0440\u0443\u043a\u0438, \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043e\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043d\u0430\u043b\u043e\u0433\u0430.<\/p>\n<p>\u041d\u0430\u043b\u043e\u0433\u0438 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a \u0441\u0443\u043c\u043c\u0435 \u0433\u043e\u0434\u043e\u0432\u043e\u0433\u043e \u0434\u043e\u0445\u043e\u0434\u0430, \u043e\u0431\u044b\u0447\u043d\u043e \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u0447\u0435\u0442\u0430 \u043f\u0435\u043d\u0441\u0438\u043e\u043d\u043d\u044b\u0445 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u043e\u0442\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439.<\/p>\n<p>\u0420\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043d\u0430\u043b\u043e\u0433\u0438 \u0431\u0443\u0434\u0435\u043c \u0434\u043b\u044f \u043d\u0435\u0436\u0435\u043d\u0430\u0442\u043e\u0433\u043e \u0431\u0435\u0437\u0434\u0435\u0442\u043d\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430. \u041f\u0440\u0438\u043a\u0438\u043d\u0443\u0442\u044c \u044d\u0444\u0444\u0435\u043a\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u0441\u0443\u043f\u0440\u0443\u0433\u0430 \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0441\u0442\u0440\u0430\u043d \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0435\u043b\u0438\u0432 \u0434\u043e\u0445\u043e\u0434 \u043d\u0430 \u0434\u0432\u0430 (\u043f\u043e\u0440\u043e\u0433\u0438 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u043e\u0433\u043e \u043d\u0430\u043b\u043e\u0433\u043e\u043e\u0431\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0443\u0434\u0432\u0430\u0438\u0432\u0430\u044e\u0442\u0441\u044f), \u043d\u043e \u0432\u0435\u0440\u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0441\u0442\u0440\u0430\u043d.<\/p>\n<p>\u041f\u043e\u043c\u043e\u0433\u0430\u0442\u044c \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u041d\u0414\u0424\u041b \u043d\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Python. \u0417\u0430\u0431\u0435\u0433\u0430\u044f \u0432\u043f\u0435\u0440\u0451\u0434, \u043c\u043e\u0433\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432\u043e \u0432\u0441\u0435\u0445 \u0434\u0435\u0441\u044f\u0442\u0438 \u0441\u0442\u0440\u0430\u043d\u0430\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0435 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438:<\/p>\n<ul>\n<li>\n<p>\u0415\u0434\u0438\u043d\u0430\u044f \u0441\u0442\u0430\u0432\u043a\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u0430\u044f \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u0434\u043e\u0445\u043e\u0434\u0443 \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c\u0430\u044f \u0435\u0433\u043e \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u043e\u0439<\/p>\n<\/li>\n<li>\n<p>\u0415\u0434\u0438\u043d\u0430\u044f \u0441\u0442\u0430\u0432\u043a\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u0430\u044f \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u0434\u043e\u0445\u043e\u0434\u0443 \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c\u0430\u044f \u0435\u0433\u043e \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u043e\u0439 + \u043d\u0435\u043e\u0431\u043b\u0430\u0433\u0430\u0435\u043c\u0430\u044f \u043d\u0430\u043b\u043e\u0433\u043e\u043c \u0441\u0443\u043c\u043c\u0430<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u043d\u044b\u0435 \u0441\u0442\u0430\u0432\u043a\u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0447\u0430\u0441\u0442\u0435\u0439 \u0434\u043e\u0445\u043e\u0434\u0430 (\u043a\u0430\u0436\u0434\u0430\u044f \u0441\u0442\u0430\u0432\u043a\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u0443\u043c\u043c\u0443 \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c \u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043f\u043e\u0440\u043e\u0433\u043e\u043c)<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435\u043c\u0435\u0446\u043a\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 (\u043f\u043e\u0445\u043e\u0436\u0430 \u043d\u0430 \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u043d\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435)<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430\u043f\u0438\u0448\u0435\u043c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u043d\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0439 \u0441\u0442\u0430\u0432\u043a\u0438.<\/p>\n<h4>\u0415\u0434\u0438\u043d\u0430\u044f \u0441\u0442\u0430\u0432\u043a\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u0430\u044f \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u0434\u043e\u0445\u043e\u0434\u0443<\/h4>\n<p>\u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0410\u0432\u0441\u0442\u0440\u0438\u0438.<\/p>\n<pre><code class=\"python\">def threshold_taxes(amount: float, thresholds: tp.Dict[float, float]):     prev_threshold = 0.0     for threshold, ratio in thresholds.items():         if prev_threshold &lt;= amount &lt; threshold:             return ratio     raise  def austria_taxes(amount):     return threshold_taxes(amount, {         11693.0: 0.0,         19134.0: 0.2,         32075.0: 0.3,         62080.0: 0.4,         93120.0: 0.48,         1000000.0: 0.5,         math.inf: 0.55     })<\/code><\/pre>\n<h4>\u0415\u0434\u0438\u043d\u0430\u044f \u0441\u0442\u0430\u0432\u043a\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u0430\u044f \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u0434\u043e\u0445\u043e\u0434\u0443 + \u043d\u0435\u043e\u0431\u043b\u0430\u0433\u0430\u0435\u043c\u0430\u044f \u043d\u0430\u043b\u043e\u0433\u043e\u043c \u0441\u0443\u043c\u043c\u0430<\/h4>\n<p>\u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u041f\u043e\u0440\u0442\u0443\u0433\u0430\u043b\u0438\u0438.<\/p>\n<p>\u041d\u0435\u043e\u0431\u043b\u0430\u0433\u0430\u0435\u043c\u0430\u044f \u043d\u0430\u043b\u043e\u0433\u043e\u043c \u0441\u0443\u043c\u043c\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \u0434\u043e\u0445\u043e\u0434\u043e\u0432.<\/p>\n<pre><code class=\"python\">def threshold_taxes_with_allowance(amount: float, thresholds: tp.Dict[float, tp.Tuple[float, float]]):     prev_threshold = 0.0     for threshold, ratio in thresholds.items():         if prev_threshold &lt;= amount &lt; threshold:             return (max(0.0, amount - ratio[1]) * ratio[0]) \/ amount     raise def portugal_taxes(amount): return threshold_taxes_with_allowance(amount, { 7116.0: (0.145, 0.0), 10736.0: (0.23, 604.86), 15216.0: (0.265, 980.63), 19696.0: (0.285, 1284.99), 25076.0: (0.35, 2565.21), 36757.0: (0.37, 3066.79), 48033.0: (0.435, 5455.84), 75009.0: (0.45, 6176.56), math.inf: (0.48, 8426.0) })<\/code><\/pre>\n<h4>\u0420\u0430\u0437\u043d\u044b\u0435 \u0441\u0442\u0430\u0432\u043a\u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0447\u0430\u0441\u0442\u0435\u0439 \u0434\u043e\u0445\u043e\u0434\u0430<\/h4>\n<p>\u041d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u0440\u0435\u0434\u0438 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0441\u0442\u0440\u0430\u043d: \u0424\u0440\u0430\u043d\u0446\u0438\u044f, \u0418\u0442\u0430\u043b\u0438\u044f, \u0418\u0440\u043b\u0430\u043d\u0434\u0438\u044f, \u0418\u0441\u043f\u0430\u043d\u0438\u044f, \u041d\u0438\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u044b, \u0411\u0435\u043b\u044c\u0433\u0438\u044f, \u0412\u0435\u043b\u0438\u043a\u043e\u0431\u0440\u0438\u0442\u0430\u043d\u0438\u044f.<\/p>\n<p>\u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u0432\u044b\u0433\u043e\u0434\u043d\u0430 \u043d\u0430\u043b\u043e\u0433\u043e\u043f\u043b\u0430\u0442\u0435\u043b\u044c\u0449\u0438\u043a\u0430\u043c, \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u0441\u0443\u043c\u043c\u0430 \u043d\u0430\u043b\u043e\u0433\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u043e\u043d\u043e\u0442\u043e\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439. \u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043f\u0440\u0435\u043c\u0438\u044f \u0438\u043b\u0438 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0440\u043f\u043b\u0430\u0442\u044b \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0432\u044b\u043f\u043b\u0430\u0442\u0435 \u043c\u0435\u043d\u044c\u0448\u0435\u0439 \u0441\u0443\u043c\u043c\u044b \u043d\u0430 \u0440\u0443\u043a\u0438 \u0438\u0437-\u0437\u0430 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u0432 \u043d\u043e\u0432\u044b\u0439 \u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441. \u0412 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u0447\u0451\u0442 \u043d\u0430\u043b\u043e\u0433\u043e\u0432.<\/p>\n<pre><code class=\"python\">def accumulated_threshold_taxes(amount: float, thresholds: tp.Dict[float, float]):     total = 0.0     prev_threshold = 0.0     for threshold, ratio in thresholds.items():         total += max(0.0, min(threshold, amount) - prev_threshold) * ratio         prev_threshold = threshold     return total \/ amount      def french_taxes(amount: float):     return accumulated_threshold_taxes(amount, {         10777.0: 0.0,         27477.0: 0.11,         78569.0: 0.3,         168993.0: 0.41,         math.inf: 0.45     })  def italian_taxes(amount):     return accumulated_threshold_taxes(amount, {         15000.0: 0.23,         28000.0: 0.25,         50000.0: 0.35,         math.inf: 0.43     })   def irish_taxes(amount):     return accumulated_threshold_taxes(amount, {         40000.0: 0.2,         math.inf: 0.4     })   def spanish_taxes(amount):     return accumulated_threshold_taxes(max(0.0, amount), {         5550.0: 0.0,         12450.0: 0.19,         20200.0: 0.24,         35200.0: 0.3,         60000.0: 0.37,         300000.0: 0.45,         math.inf: 0.47     })   def netherlands_taxes(amount):     return accumulated_threshold_taxes(amount, {         37149.0: 0.0928,         73031.0: 0.3693,         math.inf: 0.4950     })   def belgium_taxes(amount):     return accumulated_threshold_taxes(amount, {         13870.0: 0.25,         24480.0: 0.4,         42370.0: 0.45,         math.inf: 0.5     })      def english_taxes(amount):     return accumulated_threshold_taxes(amount, {         k * 1.17: v # \u041a\u0443\u0440\u0441 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u0433\u043e \u0444\u0443\u043d\u0442\u0430 \u043a \u0435\u0432\u0440\u043e \u043f\u043e \u0434\u0430\u043d\u043d\u044b\u043c Google \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438         for k, v in {             12570.0: 0.0,             50270.0: 0.2,             125140.0: 0.4,             math.inf: 0.45         }.items()     })<\/code><\/pre>\n<h4>\u041d\u0435\u043c\u0435\u0446\u043a\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043d\u0430\u043b\u043e\u0433\u043e\u043e\u0431\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h4>\n<p>\u041f\u043e\u0445\u043e\u0436\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441 \u0435\u0434\u0438\u043d\u043e\u0439 \u0441\u0442\u0430\u0432\u043a\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0439 \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u0434\u043e\u0445\u043e\u0434\u0443, \u043e\u0434\u043d\u0430\u043a\u043e \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u043e\u0442 10908 \u0434\u043e 62809 \u0435\u0432\u0440\u043e \u0432 \u0433\u043e\u0434 \u0441\u0442\u0430\u0432\u043a\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0438\u0438 \u043e\u0442 14 \u0434\u043e 42%. \u042f \u0442\u0430\u043a \u0438 \u043d\u0435 \u0441\u043c\u043e\u0433 \u043d\u0430\u0439\u0442\u0438 \u0442\u043e\u0447\u043d\u0443\u044e \u0444\u043e\u0440\u043c\u0443\u043b\u0443 \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435, \u043d\u043e, \u043a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u044d\u0442\u043e\u0439 \u0444\u043e\u0440\u043c\u0443\u043b\u044b \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u201c\u0433\u0434\u0435 \u0441\u0430\u043c\u044b\u0439 \u043d\u0438\u0437\u043a\u0438\u0439 \u041d\u0414\u0424\u041b\u201d, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0430\u043c\u0435\u043d\u0438\u043b \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0438\u044e \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439:  <\/p>\n<pre><code class=\"python\">def german_taxes(amount: float):     if amount &lt;= 10908.0:         total = 0.0     elif amount &lt;= 62809.0:         total = amount * (((amount - 10908) \/ 62809.0) * (0.42 - 0.14) + 0.14)  # FIXME     elif amount &lt;= 277825.0:         total = amount * 0.42     else:         total = amount * 0.45     return total \/ amount<\/code><\/pre>\n<h4>\u0413\u0434\u0435 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439 \u043d\u0438\u0437\u043a\u0438\u0439 \u041d\u0414\u0424\u041b?<\/h4>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0437\u0430\u0440\u043f\u043b\u0430\u0442 \u043e\u0442 1 \u0435\u0432\u0440\u043e \u0434\u043e 250 \u0442\u044b\u0441\u044f\u0447 \u0435\u0432\u0440\u043e \u0432 \u0433\u043e\u0434. \u042d\u0442\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d, \u0442\u0430\u043a \u043a\u0430\u043a \u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0441\u043c\u0435\u043d \u043f\u043e\u0440\u043e\u0433\u043e\u0432 \u043d\u0430\u043b\u043e\u0433\u043e\u043e\u0431\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043c, \u0430 \u0435\u0449\u0451 \u0432\u0435\u0441\u044c\u043c\u0430 \u043c\u0430\u043b\u043e\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0430\u0439\u0442\u0438\u0448\u043d\u0438\u043a (\u043a\u0430\u043a \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0430\u0451\u043c\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0442\u043d\u0438\u043a, \u0432\u043b\u0430\u0434\u0435\u043b\u0435\u0446 \u0436\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0442\u0435\u0445\u043d\u0438\u043a \u043f\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430\u043b\u043e\u0433\u043e\u043e\u0431\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u043b\u0430\u0442\u0438\u0442\u044c \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u041d\u0414\u0424\u041b) \u043f\u0440\u043e\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u0432 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u044d\u0442\u0438\u0445 \u0441\u0442\u0440\u0430\u043d \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 250 \u0442\u044b\u0441\u044f\u0447 \u0435\u0432\u0440\u043e \u0432 \u0433\u043e\u0434.<\/p>\n<pre><code class=\"python\">import matplotlib.pyplot as plt def make_points(f): xs = [] ys = [] for amount in range(1, 250000, 1000): xs.append(amount) ys.append(f(amount)) return xs, ys plt.plot(*make_points(french_taxes), label='France') plt.plot(*make_points(german_taxes), label='Germany') plt.plot(*make_points(italian_taxes), label='Italy') plt.plot(*make_points(spanish_taxes), label='Spain') plt.plot(*make_points(irish_taxes), label='Ireland') plt.plot(*make_points(netherlands_taxes), label='Netherlands') plt.plot(*make_points(belgium_taxes), label='Belgium') plt.plot(*make_points(portugal_taxes), label='Portugal') plt.plot(*make_points(austria_taxes), label='Austria') plt.plot(*make_points(english_taxes), label='United Kingdom') plt.legend() plt.show()<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/6d6\/c65\/7fb\/6d6c657fbf7f50d027c6c0d39d9443c7.png\" width=\"640\" height=\"480\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6d6\/c65\/7fb\/6d6c657fbf7f50d027c6c0d39d9443c7.png\"\/><\/figure>\n<p>\u0418 \u043d\u0430\u0448\u0438\u043c\u0438 \u043f\u043e\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u044f\u043c\u0438 \u0432\u044b\u0445\u043e\u0434\u044f\u0442 \u0424\u0440\u0430\u043d\u0446\u0438\u044f \u0438 \u0412\u0435\u043b\u0438\u043a\u043e\u0431\u0440\u0438\u0442\u0430\u043d\u0438\u044f. \u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0433\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043f\u043e \u043c\u043e\u0438\u043c \u043f\u0440\u0438\u043a\u0438\u0434\u043a\u0430\u043c (\u044f \u0438\u0437\u0443\u0447\u0438\u043b \u043f\u043e\u0440\u043e\u0433\u0438 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u043e\u0439 \u0448\u043a\u0430\u043b\u044b, \u043d\u043e \u043d\u0435 \u0441\u0442\u0440\u043e\u0438\u043b \u0442\u043e\u0447\u043d\u044b\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0438) \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043d\u0435\u043a\u0430\u0440\u043b\u0438\u043a\u043e\u0432\u044b\u0445 \u0441\u0442\u0440\u0430\u043d \u0415\u0432\u0440\u043e\u0441\u043e\u044e\u0437\u0430 \u0424\u0440\u0430\u043d\u0446\u0438\u044f \u0438\u043c\u0435\u0435\u0442 \u0441\u0430\u043c\u044b\u0439 \u043d\u0438\u0437\u043a\u0438\u0439 \u041d\u0414\u0424\u041b.<\/p>\n<p>\u0414\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0442\u044b \u043e\u0431\u0437\u043e\u0440\u0430 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0437\u0430\u0440\u043f\u043b\u0430\u0442 \u0434\u043e 1 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0430 \u0435\u0432\u0440\u043e \u0432 \u0433\u043e\u0434:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a05\/284\/bd8\/a05284bd889454a3f670d83c2ca3465e.png\" width=\"640\" height=\"480\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a05\/284\/bd8\/a05284bd889454a3f670d83c2ca3465e.png\"\/><\/figure>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u043f\u0435\u0440\u0451\u0434 \u0432\u044b\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0418\u0440\u043b\u0430\u043d\u0434\u0438\u044f, \u0433\u0434\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043e\u0442 300 \u0442\u044b\u0441\u044f\u0447 \u0435\u0432\u0440\u043e \u0432 \u0433\u043e\u0434 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u0430\u044f \u0441\u0442\u0430\u0432\u043a\u0430 \u043d\u0430\u043b\u043e\u0433\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0432\u043e \u0424\u0440\u0430\u043d\u0446\u0438\u0438 \u0438 \u0412\u0435\u043b\u0438\u043a\u043e\u0431\u0440\u0438\u0442\u0430\u043d\u0438\u0438.<\/p>\n<p>\u0412 \u043e\u0431\u0449\u0435\u043c, \u0435\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043b\u0430\u0442\u0438\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435 \u043d\u0430\u043b\u043e\u0433\u043e\u0432 \u0438 \u0436\u0438\u0442\u044c \u0432 \u0415\u0421, \u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0436\u0438\u0442\u044c \u0432\u043e \u0424\u0440\u0430\u043d\u0446\u0438\u0438, \u0435\u0441\u043b\u0438 \u0432\u0430\u0448\u0430 \u043d\u0430\u043b\u043e\u0433\u043e\u043e\u0431\u043b\u0430\u0433\u0430\u0435\u043c\u044b\u0439 \u0434\u043e\u0445\u043e\u0434 \u043d\u0438\u0436\u0435 300 \u0442\u044b\u0441\u044f\u0447 \u0435\u0432\u0440\u043e \u0432 \u0433\u043e\u0434. \u0422\u0430\u043a\u0436\u0435 \u043f\u0440\u0438 \u0434\u043e\u0445\u043e\u0434\u0430\u0445 \u0434\u043e 35 \u0442\u044b\u0441\u044f\u0447 \u0435\u0432\u0440\u043e \u0432 \u0433\u043e\u0434 \u0441\u0442\u0430\u0432\u043a\u0430 \u041d\u0414\u0424\u041b \u0432\u043e \u0424\u0440\u0430\u043d\u0446\u0438\u0438 \u0438 \u0412\u0435\u043b\u0438\u043a\u043e\u0431\u0440\u0438\u0442\u0430\u043d\u0438\u0438 \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u043c\u0435\u043d\u0435\u0435 13%, \u0442\u043e \u0435\u0441\u0442\u044c \u0436\u0438\u0442\u0435\u043b\u0438 \u044d\u0442\u0438\u0445 \u0441\u0442\u0440\u0430\u043d \u043f\u043b\u0430\u0442\u044f\u0442 \u041d\u0414\u0424\u041b \u043d\u0438\u0436\u0435, \u0447\u0435\u043c \u043f\u043b\u0430\u0442\u0438\u043b\u0438 \u0431\u044b \u0432 \u0420\u043e\u0441\u0441\u0438\u0438 (\u0441 \u0443\u0447\u0451\u0442\u043e\u043c \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043c\u0435\u0434\u0438\u0430\u043d\u043d\u0430\u044f \u0437\u0430\u0440\u043f\u043b\u0430\u0442\u0430 \u0432\u043e \u0424\u0440\u0430\u043d\u0446\u0438\u0438 1940 \u0435\u0432\u0440\u043e \u0432 \u043c\u0435\u0441\u044f\u0446 \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u043b\u043e\u0433\u043e\u0432 &#8212; \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u044b \u0444\u0440\u0430\u043d\u0446\u0443\u0437\u043e\u0432 \u043f\u043b\u0430\u0442\u0438\u0442 \u041d\u0414\u0424\u041b \u043d\u0438\u0436\u0435 13%).<\/p>\n<p><a href=\"https:\/\/t.me\/kiv_apple_blog\/121\" rel=\"noopener noreferrer nofollow\">\u041e\u0431\u0441\u0443\u0434\u0438\u0442\u044c \u0432 \u043c\u043e\u0451\u043c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u0431\u043b\u043e\u0433\u0435 \u0432 Telegram \u043f\u0440\u043e \u0424\u0440\u0430\u043d\u0446\u0438\u044e, \u0440\u043e\u0431\u043e\u0442\u043e\u0432 \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/778018\/\"> https:\/\/habr.com\/ru\/articles\/778018\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0437\u0430\u043f\u0430\u0434\u043d\u044b\u0445 \u0441\u0442\u0440\u0430\u043d \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u0430\u044f \u0448\u043a\u0430\u043b\u0430 \u043d\u0430\u043b\u043e\u0433\u043e\u043e\u0431\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u043e \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0445\u043e\u0434\u0438\u0442 \u043c\u043d\u043e\u0433\u043e \u043b\u0435\u0433\u0435\u043d\u0434 (\u0432\u043f\u043e\u043b\u043d\u0435 \u043e\u0431\u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0445, \u043d\u043e \u0435\u0441\u0442\u044c \u043d\u044e\u0430\u043d\u0441\u044b) \u043a\u0430\u043a\u0438\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u043d\u0430\u043b\u043e\u0433\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u0420\u043e\u0441\u0441\u0438\u0435\u0439 \u0441 \u043f\u043b\u043e\u0441\u043a\u043e\u0439 \u0448\u043a\u0430\u043b\u043e\u0439 13%. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043e\u0431\u0437\u043e\u0440\u043d\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0434\u0435\u0441\u044f\u0442\u0438 \u0441\u0442\u0440\u0430\u043d \u0415\u0432\u0440\u043e\u043f\u044b (\u0432 \u0446\u0435\u043b\u044f\u0445 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u0430\u043d\u044b \u0417\u0430\u043f\u0430\u0434\u043d\u043e\u0439 \u0415\u0432\u0440\u043e\u043f\u044b \u0438 \u0438\u0437 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u0440\u043b\u0438\u043a\u043e\u0432\u044b\u0435 \u0433\u043e\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0428\u0432\u0435\u0439\u0446\u0430\u0440\u0438\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0442\u0430\u043c \u0432\u0441\u0451 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0441\u043b\u043e\u0436\u043d\u043e): \u0424\u0440\u0430\u043d\u0446\u0438\u044f, \u0413\u0435\u0440\u043c\u0430\u043d\u0438\u044f, \u0418\u0442\u0430\u043b\u0438\u044f, \u0418\u0441\u043f\u0430\u043d\u0438\u044f, \u0418\u0440\u043b\u0430\u043d\u0434\u0438\u044f, \u041d\u0438\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u044b, \u0411\u0435\u043b\u044c\u0433\u0438\u044f, \u041f\u043e\u0440\u0442\u0443\u0433\u0430\u043b\u0438\u044f, \u0410\u0432\u0441\u0442\u0440\u0438\u044f, \u0412\u0435\u043b\u0438\u043a\u043e\u0431\u0440\u0438\u0442\u0430\u043d\u0438\u044f.<\/p>\n<p>\u0420\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u041d\u0414\u0424\u041b. \u041d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u044d\u0442\u043e \u0441\u0430\u043c\u044b\u0439 \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u043d\u0430\u043b\u043e\u0433, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0435\u043d\u0441\u0438\u043e\u043d\u043d\u044b\u0435, \u0441\u0442\u0440\u0430\u0445\u043e\u0432\u044b\u0435 \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u043e\u0442\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 \u043d\u0435\u043a\u0443\u044e \u0442\u0432\u0451\u0440\u0434\u0443\u044e \u0441\u0443\u043c\u043c\u0443 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0435\u043d\u0441\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0431\u0443\u0434\u0435\u0442 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0432 \u0441\u0442\u0430\u0440\u043e\u0441\u0442\u0438). \u0410 \u0432\u043e\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u041d\u0414\u0424\u041b \u0438\u0434\u0451\u0442 \u0432 \u043d\u0435\u043a\u0438\u0439 &#171;\u043e\u0431\u0449\u0438\u0439 \u043a\u043e\u0442\u0451\u043b&#187;, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0442\u043e\u043c \u0444\u0438\u043d\u0430\u043d\u0441\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e, \u043e\u0440\u0433\u0430\u043d\u044b \u043f\u0440\u0430\u0432\u043e\u043f\u043e\u0440\u044f\u0434\u043a\u0430, \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0442. \u0434. \u0427\u0438\u0442\u0430\u0442\u0435\u043b\u044f\u043c \u0441\u0442\u0430\u0442\u044c\u0438 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432 \u0443\u043c\u0435, \u0447\u0442\u043e \u0432 \u0415\u0432\u0440\u043e\u043f\u0435 \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u0443\u043c\u043c\u0443 \u0437\u0430\u0440\u043f\u043b\u0430\u0442\u044b \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e \u0432\u044b\u0447\u0435\u0442\u0430 \u041d\u0414\u0424\u041b, \u043d\u043e \u0438 \u0434\u043e \u0432\u044b\u0447\u0435\u0442\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u043e\u0442\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0430\u043d\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043e\u0446\u0435\u043d\u043a\u0438 \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u0439 \u0441\u0443\u043c\u043c\u044b \u043a \u0432\u044b\u043f\u043b\u0430\u0442\u0435 \u043d\u0430 \u0440\u0443\u043a\u0438, \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u043e\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043d\u0430\u043b\u043e\u0433\u0430.<\/p>\n<p>\u041d\u0430\u043b\u043e\u0433\u0438 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a \u0441\u0443\u043c\u043c\u0435 \u0433\u043e\u0434\u043e\u0432\u043e\u0433\u043e \u0434\u043e\u0445\u043e\u0434\u0430, \u043e\u0431\u044b\u0447\u043d\u043e \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u0447\u0435\u0442\u0430 \u043f\u0435\u043d\u0441\u0438\u043e\u043d\u043d\u044b\u0445 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u043e\u0442\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439.<\/p>\n<p>\u0420\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043d\u0430\u043b\u043e\u0433\u0438 \u0431\u0443\u0434\u0435\u043c \u0434\u043b\u044f \u043d\u0435\u0436\u0435\u043d\u0430\u0442\u043e\u0433\u043e \u0431\u0435\u0437\u0434\u0435\u0442\u043d\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430. \u041f\u0440\u0438\u043a\u0438\u043d\u0443\u0442\u044c \u044d\u0444\u0444\u0435\u043a\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u0441\u0443\u043f\u0440\u0443\u0433\u0430 \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0441\u0442\u0440\u0430\u043d \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0435\u043b\u0438\u0432 \u0434\u043e\u0445\u043e\u0434 \u043d\u0430 \u0434\u0432\u0430 (\u043f\u043e\u0440\u043e\u0433\u0438 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u043e\u0433\u043e \u043d\u0430\u043b\u043e\u0433\u043e\u043e\u0431\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0443\u0434\u0432\u0430\u0438\u0432\u0430\u044e\u0442\u0441\u044f), \u043d\u043e \u0432\u0435\u0440\u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0441\u0442\u0440\u0430\u043d.<\/p>\n<p>\u041f\u043e\u043c\u043e\u0433\u0430\u0442\u044c \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u041d\u0414\u0424\u041b \u043d\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Python. \u0417\u0430\u0431\u0435\u0433\u0430\u044f \u0432\u043f\u0435\u0440\u0451\u0434, \u043c\u043e\u0433\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432\u043e \u0432\u0441\u0435\u0445 \u0434\u0435\u0441\u044f\u0442\u0438 \u0441\u0442\u0440\u0430\u043d\u0430\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0435 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438:<\/p>\n<ul>\n<li>\n<p>\u0415\u0434\u0438\u043d\u0430\u044f \u0441\u0442\u0430\u0432\u043a\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u0430\u044f \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u0434\u043e\u0445\u043e\u0434\u0443 \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c\u0430\u044f \u0435\u0433\u043e \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u043e\u0439<\/p>\n<\/li>\n<li>\n<p>\u0415\u0434\u0438\u043d\u0430\u044f \u0441\u0442\u0430\u0432\u043a\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u0430\u044f \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u0434\u043e\u0445\u043e\u0434\u0443 \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c\u0430\u044f \u0435\u0433\u043e \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u043e\u0439 + \u043d\u0435\u043e\u0431\u043b\u0430\u0433\u0430\u0435\u043c\u0430\u044f \u043d\u0430\u043b\u043e\u0433\u043e\u043c \u0441\u0443\u043c\u043c\u0430<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u043d\u044b\u0435 \u0441\u0442\u0430\u0432\u043a\u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0447\u0430\u0441\u0442\u0435\u0439 \u0434\u043e\u0445\u043e\u0434\u0430 (\u043a\u0430\u0436\u0434\u0430\u044f \u0441\u0442\u0430\u0432\u043a\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u0443\u043c\u043c\u0443 \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c \u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043f\u043e\u0440\u043e\u0433\u043e\u043c)<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435\u043c\u0435\u0446\u043a\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 (\u043f\u043e\u0445\u043e\u0436\u0430 \u043d\u0430 \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u043d\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435)<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430\u043f\u0438\u0448\u0435\u043c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u043d\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0439 \u0441\u0442\u0430\u0432\u043a\u0438.<\/p>\n<h4>\u0415\u0434\u0438\u043d\u0430\u044f \u0441\u0442\u0430\u0432\u043a\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u0430\u044f \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u0434\u043e\u0445\u043e\u0434\u0443<\/h4>\n<p>\u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0410\u0432\u0441\u0442\u0440\u0438\u0438.<\/p>\n<pre><code class=\"python\">def threshold_taxes(amount: float, thresholds: tp.Dict[float, float]):     prev_threshold = 0.0     for threshold, ratio in thresholds.items():         if prev_threshold &lt;= amount &lt; threshold:             return ratio     raise  def austria_taxes(amount):     return threshold_taxes(amount, {         11693.0: 0.0,         19134.0: 0.2,         32075.0: 0.3,         62080.0: 0.4,         93120.0: 0.48,         1000000.0: 0.5,         math.inf: 0.55     })<\/code><\/pre>\n<h4>\u0415\u0434\u0438\u043d\u0430\u044f \u0441\u0442\u0430\u0432\u043a\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u0430\u044f \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u0434\u043e\u0445\u043e\u0434\u0443 + \u043d\u0435\u043e\u0431\u043b\u0430\u0433\u0430\u0435\u043c\u0430\u044f \u043d\u0430\u043b\u043e\u0433\u043e\u043c \u0441\u0443\u043c\u043c\u0430<\/h4>\n<p>\u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u041f\u043e\u0440\u0442\u0443\u0433\u0430\u043b\u0438\u0438.<\/p>\n<p>\u041d\u0435\u043e\u0431\u043b\u0430\u0433\u0430\u0435\u043c\u0430\u044f \u043d\u0430\u043b\u043e\u0433\u043e\u043c \u0441\u0443\u043c\u043c\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430 \u0434\u043e\u0445\u043e\u0434\u043e\u0432.<\/p>\n<pre><code class=\"python\">def threshold_taxes_with_allowance(amount: float, thresholds: tp.Dict[float, tp.Tuple[float, float]]):     prev_threshold = 0.0     for threshold, ratio in thresholds.items():         if prev_threshold &lt;= amount &lt; threshold:             return (max(0.0, amount - ratio[1]) * ratio[0]) \/ amount     raise def portugal_taxes(amount): return threshold_taxes_with_allowance(amount, { 7116.0: (0.145, 0.0), 10736.0: (0.23, 604.86), 15216.0: (0.265, 980.63), 19696.0: (0.285, 1284.99), 25076.0: (0.35, 2565.21), 36757.0: (0.37, 3066.79), 48033.0: (0.435, 5455.84), 75009.0: (0.45, 6176.56), math.inf: (0.48, 8426.0) })<\/code><\/pre>\n<h4>\u0420\u0430\u0437\u043d\u044b\u0435 \u0441\u0442\u0430\u0432\u043a\u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0447\u0430\u0441\u0442\u0435\u0439 \u0434\u043e\u0445\u043e\u0434\u0430<\/h4>\n<p>\u041d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u0440\u0435\u0434\u0438 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0441\u0442\u0440\u0430\u043d: \u0424\u0440\u0430\u043d\u0446\u0438\u044f, \u0418\u0442\u0430\u043b\u0438\u044f, \u0418\u0440\u043b\u0430\u043d\u0434\u0438\u044f, \u0418\u0441\u043f\u0430\u043d\u0438\u044f, \u041d\u0438\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u044b, \u0411\u0435\u043b\u044c\u0433\u0438\u044f, \u0412\u0435\u043b\u0438\u043a\u043e\u0431\u0440\u0438\u0442\u0430\u043d\u0438\u044f.<\/p>\n<p>\u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u0432\u044b\u0433\u043e\u0434\u043d\u0430 \u043d\u0430\u043b\u043e\u0433\u043e\u043f\u043b\u0430\u0442\u0435\u043b\u044c\u0449\u0438\u043a\u0430\u043c, \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u0441\u0443\u043c\u043c\u0430 \u043d\u0430\u043b\u043e\u0433\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u043e\u043d\u043e\u0442\u043e\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439. \u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043f\u0440\u0435\u043c\u0438\u044f \u0438\u043b\u0438 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0440\u043f\u043b\u0430\u0442\u044b \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0432\u044b\u043f\u043b\u0430\u0442\u0435 \u043c\u0435\u043d\u044c\u0448\u0435\u0439 \u0441\u0443\u043c\u043c\u044b \u043d\u0430 \u0440\u0443\u043a\u0438 \u0438\u0437-\u0437\u0430 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u0432 \u043d\u043e\u0432\u044b\u0439 \u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441. \u0412 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u0447\u0451\u0442 \u043d\u0430\u043b\u043e\u0433\u043e\u0432.<\/p>\n<pre><code class=\"python\">def accumulated_threshold_taxes(amount: float, thresholds: tp.Dict[float, float]):     total = 0.0     prev_threshold = 0.0     for threshold, ratio in thresholds.items():         total += max(0.0, min(threshold, amount) - prev_threshold) * ratio         prev_threshold = threshold     return total \/ amount      def french_taxes(amount: float):     return accumulated_threshold_taxes(amount, {         10777.0: 0.0,         27477.0: 0.11,         78569.0: 0.3,         168993.0: 0.41,         math.inf: 0.45     })  def italian_taxes(amount):     return accumulated_threshold_taxes(amount, {         15000.0: 0.23,         28000.0: 0.25,         50000.0: 0.35,         math.inf: 0.43     })   def irish_taxes(amount):     return accumulated_threshold_taxes(amount, {         40000.0: 0.2,         math.inf: 0.4     })   def spanish_taxes(amount):     return accumulated_threshold_taxes(max(0.0, amount), {         5550.0: 0.0,         12450.0: 0.19,         20200.0: 0.24,         35200.0: 0.3,         60000.0: 0.37,         300000.0: 0.45,         math.inf: 0.47     })   def netherlands_taxes(amount):     return accumulated_threshold_taxes(amount, {         37149.0: 0.0928,         73031.0: 0.3693,         math.inf: 0.4950     })   def belgium_taxes(amount):     return accumulated_threshold_taxes(amount, {         13870.0: 0.25,         24480.0: 0.4,         42370.0: 0.45,         math.inf: 0.5     })      def english_taxes(amount):     return accumulated_threshold_taxes(amount, {         k * 1.17: v # \u041a\u0443\u0440\u0441 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u0433\u043e \u0444\u0443\u043d\u0442\u0430 \u043a \u0435\u0432\u0440\u043e \u043f\u043e \u0434\u0430\u043d\u043d\u044b\u043c Google \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438         for k, v in {             12570.0: 0.0,             50270.0: 0.2,             125140.0: 0.4,             math.inf: 0.45         }.items()     })<\/code><\/pre>\n<h4>\u041d\u0435\u043c\u0435\u0446\u043a\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043d\u0430\u043b\u043e\u0433\u043e\u043e\u0431\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h4>\n<p>\u041f\u043e\u0445\u043e\u0436\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441 \u0435\u0434\u0438\u043d\u043e\u0439 \u0441\u0442\u0430\u0432\u043a\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0439 \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u0434\u043e\u0445\u043e\u0434\u0443, \u043e\u0434\u043d\u0430\u043a\u043e \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u043e\u0442 10908 \u0434\u043e 62809 \u0435\u0432\u0440\u043e \u0432 \u0433\u043e\u0434 \u0441\u0442\u0430\u0432\u043a\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0438\u0438 \u043e\u0442 14 \u0434\u043e 42%. \u042f \u0442\u0430\u043a \u0438 \u043d\u0435 \u0441\u043c\u043e\u0433 \u043d\u0430\u0439\u0442\u0438 \u0442\u043e\u0447\u043d\u0443\u044e \u0444\u043e\u0440\u043c\u0443\u043b\u0443 \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435, \u043d\u043e, \u043a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u044d\u0442\u043e\u0439 \u0444\u043e\u0440\u043c\u0443\u043b\u044b \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u201c\u0433\u0434\u0435 \u0441\u0430\u043c\u044b\u0439 \u043d\u0438\u0437\u043a\u0438\u0439 \u041d\u0414\u0424\u041b\u201d, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0430\u043c\u0435\u043d\u0438\u043b \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0438\u044e \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439:  <\/p>\n<pre><code class=\"python\">def german_taxes(amount: float):     if amount &lt;= 10908.0:         total = 0.0     elif amount &lt;= 62809.0:         total = amount * (((amount - 10908) \/ 62809.0) * (0.42 - 0.14) + 0.14)  # FIXME     elif amount &lt;= 277825.0:         total = amount * 0.42     else:         total = amount * 0.45     return total \/ amount<\/code><\/pre>\n<h4>\u0413\u0434\u0435 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439 \u043d\u0438\u0437\u043a\u0438\u0439 \u041d\u0414\u0424\u041b?<\/h4>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0437\u0430\u0440\u043f\u043b\u0430\u0442 \u043e\u0442 1 \u0435\u0432\u0440\u043e \u0434\u043e 250 \u0442\u044b\u0441\u044f\u0447 \u0435\u0432\u0440\u043e \u0432 \u0433\u043e\u0434. \u042d\u0442\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d, \u0442\u0430\u043a \u043a\u0430\u043a \u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0441\u043c\u0435\u043d \u043f\u043e\u0440\u043e\u0433\u043e\u0432 \u043d\u0430\u043b\u043e\u0433\u043e\u043e\u0431\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043c, \u0430 \u0435\u0449\u0451 \u0432\u0435\u0441\u044c\u043c\u0430 \u043c\u0430\u043b\u043e\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0430\u0439\u0442\u0438\u0448\u043d\u0438\u043a (\u043a\u0430\u043a \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0430\u0451\u043c\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0442\u043d\u0438\u043a, \u0432\u043b\u0430\u0434\u0435\u043b\u0435\u0446 \u0436\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0442\u0435\u0445\u043d\u0438\u043a \u043f\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430\u043b\u043e\u0433\u043e\u043e\u0431\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u043b\u0430\u0442\u0438\u0442\u044c \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u041d\u0414\u0424\u041b) \u043f\u0440\u043e\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u0432 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u044d\u0442\u0438\u0445 \u0441\u0442\u0440\u0430\u043d \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 250 \u0442\u044b\u0441\u044f\u0447 \u0435\u0432\u0440\u043e \u0432 \u0433\u043e\u0434.<\/p>\n<pre><code class=\"python\">import matplotlib.pyplot as plt def make_points(f): xs = [] ys = [] for amount in range(1, 250000, 1000): xs.append(amount) ys.append(f(amount)) return xs, ys plt.plot(*make_points(french_taxes), label='France') plt.plot(*make_points(german_taxes), label='Germany') plt.plot(*make_points(italian_taxes), label='Italy') plt.plot(*make_points(spanish_taxes), label='Spain') plt.plot(*make_points(irish_taxes), label='Ireland') plt.plot(*make_points(netherlands_taxes), label='Netherlands') plt.plot(*make_points(belgium_taxes), label='Belgium') plt.plot(*make_points(portugal_taxes), label='Portugal') plt.plot(*make_points(austria_taxes), label='Austria') plt.plot(*make_points(english_taxes), label='United Kingdom') plt.legend() plt.show()<\/code><\/pre>\n<figure class=\"full-width\"><\/figure>\n<p>\u0418 \u043d\u0430\u0448\u0438\u043c\u0438 \u043f\u043e\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u044f\u043c\u0438 \u0432\u044b\u0445\u043e\u0434\u044f\u0442 \u0424\u0440\u0430\u043d\u0446\u0438\u044f \u0438 \u0412\u0435\u043b\u0438\u043a\u043e\u0431\u0440\u0438\u0442\u0430\u043d\u0438\u044f. \u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0433\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043f\u043e \u043c\u043e\u0438\u043c \u043f\u0440\u0438\u043a\u0438\u0434\u043a\u0430\u043c (\u044f \u0438\u0437\u0443\u0447\u0438\u043b \u043f\u043e\u0440\u043e\u0433\u0438 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u043e\u0439 \u0448\u043a\u0430\u043b\u044b, \u043d\u043e \u043d\u0435 \u0441\u0442\u0440\u043e\u0438\u043b \u0442\u043e\u0447\u043d\u044b\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0438) \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043d\u0435\u043a\u0430\u0440\u043b\u0438\u043a\u043e\u0432\u044b\u0445 \u0441\u0442\u0440\u0430\u043d \u0415\u0432\u0440\u043e\u0441\u043e\u044e\u0437\u0430 \u0424\u0440\u0430\u043d\u0446\u0438\u044f \u0438\u043c\u0435\u0435\u0442 \u0441\u0430\u043c\u044b\u0439 \u043d\u0438\u0437\u043a\u0438\u0439 \u041d\u0414\u0424\u041b.<\/p>\n<p>\u0414\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0442\u044b \u043e\u0431\u0437\u043e\u0440\u0430 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0437\u0430\u0440\u043f\u043b\u0430\u0442 \u0434\u043e 1 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0430 \u0435\u0432\u0440\u043e \u0432 \u0433\u043e\u0434:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u043f\u0435\u0440\u0451\u0434 \u0432\u044b\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0418\u0440\u043b\u0430\u043d\u0434\u0438\u044f, \u0433\u0434\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043e\u0442 300 \u0442\u044b\u0441\u044f\u0447 \u0435\u0432\u0440\u043e \u0432 \u0433\u043e\u0434 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u0430\u044f \u0441\u0442\u0430\u0432\u043a\u0430 \u043d\u0430\u043b\u043e\u0433\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0432\u043e \u0424\u0440\u0430\u043d\u0446\u0438\u0438 \u0438 \u0412\u0435\u043b\u0438\u043a\u043e\u0431\u0440\u0438\u0442\u0430\u043d\u0438\u0438.<\/p>\n<p>\u0412 \u043e\u0431\u0449\u0435\u043c, \u0435\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043b\u0430\u0442\u0438\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435 \u043d\u0430\u043b\u043e\u0433\u043e\u0432 \u0438 \u0436\u0438\u0442\u044c \u0432 \u0415\u0421, \u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0436\u0438\u0442\u044c \u0432\u043e \u0424\u0440\u0430\u043d\u0446\u0438\u0438, \u0435\u0441\u043b\u0438 \u0432\u0430\u0448\u0430 \u043d\u0430\u043b\u043e\u0433\u043e\u043e\u0431\u043b\u0430\u0433\u0430\u0435\u043c\u044b\u0439 \u0434\u043e\u0445\u043e\u0434 \u043d\u0438\u0436\u0435 300 \u0442\u044b\u0441\u044f\u0447 \u0435\u0432\u0440\u043e \u0432 \u0433\u043e\u0434. \u0422\u0430\u043a\u0436\u0435 \u043f\u0440\u0438 \u0434\u043e\u0445\u043e\u0434\u0430\u0445 \u0434\u043e 35 \u0442\u044b\u0441\u044f\u0447 \u0435\u0432\u0440\u043e \u0432 \u0433\u043e\u0434 \u0441\u0442\u0430\u0432\u043a\u0430 \u041d\u0414\u0424\u041b \u0432\u043e \u0424\u0440\u0430\u043d\u0446\u0438\u0438 \u0438 \u0412\u0435\u043b\u0438\u043a\u043e\u0431\u0440\u0438\u0442\u0430\u043d\u0438\u0438 \u0432\u044b\u0445\u043e\u0434\u0438\u0442 \u043c\u0435\u043d\u0435\u0435 13%, \u0442\u043e \u0435\u0441\u0442\u044c \u0436\u0438\u0442\u0435\u043b\u0438 \u044d\u0442\u0438\u0445 \u0441\u0442\u0440\u0430\u043d \u043f\u043b\u0430\u0442\u044f\u0442 \u041d\u0414\u0424\u041b \u043d\u0438\u0436\u0435, \u0447\u0435\u043c \u043f\u043b\u0430\u0442\u0438\u043b\u0438 \u0431\u044b \u0432 \u0420\u043e\u0441\u0441\u0438\u0438 (\u0441 \u0443\u0447\u0451\u0442\u043e\u043c \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043c\u0435\u0434\u0438\u0430\u043d\u043d\u0430\u044f \u0437\u0430\u0440\u043f\u043b\u0430\u0442\u0430 \u0432\u043e \u0424\u0440\u0430\u043d\u0446\u0438\u0438 1940 \u0435\u0432\u0440\u043e \u0432 \u043c\u0435\u0441\u044f\u0446 \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u043b\u043e\u0433\u043e\u0432 &#8212; \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u044b \u0444\u0440\u0430\u043d\u0446\u0443\u0437\u043e\u0432 \u043f\u043b\u0430\u0442\u0438\u0442 \u041d\u0414\u0424\u041b \u043d\u0438\u0436\u0435 13%).<\/p>\n<p><a href=\"https:\/\/t.me\/kiv_apple_blog\/121\" rel=\"noopener noreferrer nofollow\">\u041e\u0431\u0441\u0443\u0434\u0438\u0442\u044c \u0432 \u043c\u043e\u0451\u043c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u0431\u043b\u043e\u0433\u0435 \u0432 Telegram \u043f\u0440\u043e \u0424\u0440\u0430\u043d\u0446\u0438\u044e, \u0440\u043e\u0431\u043e\u0442\u043e\u0432 \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/778018\/\"> https:\/\/habr.com\/ru\/articles\/778018\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-361856","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/361856","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=361856"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/361856\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=361856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=361856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=361856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}