{"id":299,"date":"2026-03-27T23:25:32","date_gmt":"2026-03-27T14:25:32","guid":{"rendered":"https:\/\/tool-laboratory.com\/?p=299"},"modified":"2026-04-18T15:52:08","modified_gmt":"2026-04-18T06:52:08","slug":"tax-calculator-2","status":"publish","type":"post","link":"https:\/\/tool-laboratory.com\/en\/tax-calculator-2\/","title":{"rendered":"\u3010\u7121\u6599\u3011\u7a0e\u8fbc\u30fb\u7a0e\u629c\u304d\u8a08\u7b97\uff5c\u6d88\u8cbb\u7a0e\u30fbVAT\u30fbSales Tax\u3092\u4e00\u77ac\u3067\u8a08\u7b97\uff0810%\u30fb8%\u5bfe\u5fdc\uff09"},"content":{"rendered":"<h2>\ud83d\udcb0 \u7a0e\u8fbc\u30fb\u7a0e\u629c\u304d\u8a08\u7b97\u30c4\u30fc\u30eb<\/h2>\n\n<div class=\"calc-box\">\n  <input type=\"number\" id=\"price\" placeholder=\"\u91d1\u984d\u3092\u5165\u529b\">\n\n  <select id=\"taxRate\" onchange=\"calc()\">\n    <option value=\"0.1\">10% (Japan)<\/option>\n    <option value=\"0.08\">8% (Reduced)<\/option>\n    <option value=\"0.2\">20% (UK VAT)<\/option>\n    <option value=\"0.07\">7% (Sales Tax)<\/option>\n  <\/select>\n\n  <div class=\"toggle\">\n    <button id=\"inclBtn\" class=\"active\" onclick=\"setMode('incl')\">\u7a0e\u8fbc \u2192 \u7a0e\u629c<\/button>\n    <button id=\"exclBtn\" onclick=\"setMode('excl')\">\u7a0e\u629c \u2192 \u7a0e\u8fbc<\/button>\n  <\/div>\n\n  <div id=\"result\"><\/div>\n<\/div>\n\n<style>\n.calc-box{\n  padding:20px;\n  border-radius:16px;\n  background:#fff;\n  box-shadow:0 10px 25px rgba(0,0,0,0.08);\n  display:flex;\n  flex-direction:column;\n  gap:12px;\n  max-width:420px;\n  margin:auto;\n}\n\n.calc-box input,\n.calc-box select{\n  padding:14px;\n  font-size:16px;\n  border-radius:12px;\n  border:1px solid #ddd;\n}\n\n.toggle{\n  display:flex;\n  gap:6px;\n}\n\n.toggle button{\n  flex:1;\n  padding:10px;\n  border:none;\n  border-radius:10px;\n  background:#eee;\n  font-size:14px;\n}\n\n.toggle .active{\n  background:#3B82F6;\n  color:#fff;\n}\n\n#result{\n  font-weight:bold;\n  margin-top:10px;\n  font-size:18px;\n  line-height:1.6;\n}\n<\/style>\n\n<script>\nlet mode = \"incl\";\n\nfunction setMode(m){\n  mode = m;\n  document.getElementById(\"inclBtn\").classList.remove(\"active\");\n  document.getElementById(\"exclBtn\").classList.remove(\"active\");\n  document.getElementById(m===\"incl\"?\"inclBtn\":\"exclBtn\").classList.add(\"active\");\n  calc();\n}\n\ndocument.getElementById(\"price\").addEventListener(\"input\", calc);\n\nfunction calc(){\n  let price = parseFloat(document.getElementById(\"price\").value);\n  let tax = parseFloat(document.getElementById(\"taxRate\").value);\n\n  if(isNaN(price)){\n    document.getElementById(\"result\").innerHTML = \"\u91d1\u984d\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\";\n    return;\n  }\n\n  let taxAmount, total, base;\n\n  if(mode === \"incl\"){\n    base = Math.floor(price \/ (1 + tax));\n    taxAmount = price - base;\n    total = price;\n    document.getElementById(\"result\").innerHTML =\n      \"\u7a0e\u629c\u4fa1\u683c\uff1a\" + base + \"<br>\u7a0e\u984d\uff1a\" + taxAmount;\n  } else {\n    taxAmount = Math.floor(price * tax);\n    total = price + taxAmount;\n    document.getElementById(\"result\").innerHTML =\n      \"\u7a0e\u984d\uff1a\" + taxAmount + \"<br>\u7a0e\u8fbc\u4fa1\u683c\uff1a\" + total;\n  }\n}\n<\/script>\n\n\n\n<p class=\"wp-block-paragraph\">\u7a0e\u8fbc\u30fb\u7a0e\u629c\u304d\u8a08\u7b97\u3092\u7c21\u5358\u306b\u3059\u308b\u65b9\u6cd5<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7a0e\u8fbc\u4fa1\u683c\u3084\u7a0e\u629c\u4fa1\u683c\u3092\u8a08\u7b97\u3057\u305f\u3044\u3068\u304d\u3001\u6bce\u56de\u8a08\u7b97\u3059\u308b\u306e\u306f\u9762\u5012\u3067\u3059\u3088\u306d\u3002 \u3053\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u3048\u3070\u3001\u91d1\u984d\u3092\u5165\u529b\u3059\u308b\u3060\u3051\u3067\u81ea\u52d5\u7684\u306b\u6d88\u8cbb\u7a0e\u30fbVAT\u30fbSales Tax\u3092\u8a08\u7b97\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u65e5\u672c\u306e\u6d88\u8cbb\u7a0e\uff0810%\u30fb8%\uff09\u306f\u3082\u3061\u308d\u3093\u3001\u6d77\u5916\u306eVAT\u3084Sales Tax\u306b\u3082\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u305f\u3081\u3001 \u6d77\u5916\u53d6\u5f15\u3084EC\u30b5\u30a4\u30c8\u904b\u55b6\u306b\u3082\u4fbf\u5229\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7a0e\u8fbc\u3068\u7a0e\u629c\u306e\u9055\u3044<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u7a0e\u8fbc\u3068\u306f\u7a0e\u91d1\u3092\u542b\u3093\u3060\u91d1\u984d\u3001\u7a0e\u629c\u3068\u306f\u7a0e\u91d1\u3092\u542b\u307e\u306a\u3044\u91d1\u984d\u306e\u3053\u3068\u3067\u3059\u3002 \u4f8b\u3048\u3070\u3001\u7a0e\u629c1000\u5186\u306e\u5546\u54c1\u306b10%\u306e\u6d88\u8cbb\u7a0e\u304c\u304b\u304b\u308b\u5834\u5408\u3001\u7a0e\u8fbc\u4fa1\u683c\u306f1100\u5186\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u3053\u306e\u30c4\u30fc\u30eb\u306e\u4f7f\u3044\u65b9<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">1. \u91d1\u984d\u3092\u5165\u529b<br>2. \u7a0e\u7387\u3092\u9078\u629e<br>3. \u7a0e\u8fbc\u30fb\u7a0e\u629c\u30e2\u30fc\u30c9\u3092\u9078\u3076<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3060\u3051\u3067\u77ac\u6642\u306b\u8a08\u7b97\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002 \u30b9\u30de\u30db\u3067\u3082\u4f7f\u3044\u3084\u3059\u3044\u8a2d\u8a08\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u5916\u51fa\u5148\u3067\u3082\u3059\u3050\u306b\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>\ud83d\udcb0 \u7a0e\u8fbc\u30fb\u7a0e\u629c\u304d\u8a08\u7b97\u30c4\u30fc\u30eb 10% (Japan)8% (Reduced)20% (UK VAT)7% (Sales Tax) \u7a0e\u8fbc \u2192 \u7a0e\u629c \u7a0e\u629c \u2192 \u7a0e\u8fbc \u7a0e\u8fbc\u30fb\u7a0e\u629c\u304d\u8a08\u7b97\u3092\u7c21\u5358\u306b\u3059\u308b\u65b9\u6cd5 \u7a0e\u8fbc\u4fa1\u683c\u3084\u7a0e\u629c\u4fa1\u683c\u3092\u8a08\u7b97\u3057 &#8230; <a title=\"\u3010\u7121\u6599\u3011\u7a0e\u8fbc\u30fb\u7a0e\u629c\u304d\u8a08\u7b97\uff5c\u6d88\u8cbb\u7a0e\u30fbVAT\u30fbSales Tax\u3092\u4e00\u77ac\u3067\u8a08\u7b97\uff0810%\u30fb8%\u5bfe\u5fdc\uff09\" class=\"read-more\" href=\"https:\/\/tool-laboratory.com\/en\/tax-calculator-2\/\" aria-label=\"Read more about \u3010\u7121\u6599\u3011\u7a0e\u8fbc\u30fb\u7a0e\u629c\u304d\u8a08\u7b97\uff5c\u6d88\u8cbb\u7a0e\u30fbVAT\u30fbSales Tax\u3092\u4e00\u77ac\u3067\u8a08\u7b97\uff0810%\u30fb8%\u5bfe\u5fdc\uff09\">Read more<\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[7],"tags":[175,174],"class_list":["post-299","post","type-post","status-publish","format-standard","hentry","category-calculator","tag-175","tag-174"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/posts\/299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/comments?post=299"}],"version-history":[{"count":2,"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/posts\/299\/revisions"}],"predecessor-version":[{"id":441,"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/posts\/299\/revisions\/441"}],"wp:attachment":[{"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/media?parent=299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/categories?post=299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tool-laboratory.com\/en\/wp-json\/wp\/v2\/tags?post=299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}