{"id":14096,"date":"2020-04-08T20:38:36","date_gmt":"2020-04-08T11:38:36","guid":{"rendered":"http:\/\/wp.okazakiac.com\/oac\/?page_id=14096"},"modified":"2026-03-23T17:57:26","modified_gmt":"2026-03-23T08:57:26","slug":"mt-calculator","status":"publish","type":"page","link":"https:\/\/okazakiac.com\/oac\/officer\/mt-calculator\/","title":{"rendered":"\u8cbb\u7528\u8a08\u7b97\u30c4\u30fc\u30eb"},"content":{"rendered":"\n<p class=\"has-very-light-gray-background-color has-background has-small-font-size\">\u5c71\u884c\u306e\u8cbb\u7528\u3092\u8a08\u7b97\u3001\u5272\u308a\u52d8\u3059\u308b\u305f\u3081\u306e\u30da\u30fc\u30b8\u3067\u3059\u3002<br>\u67a0\u5185\u306b\u306f\u6570\u5b57\u306e\u307f\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u300c\u8a08\u7b97\u3059\u308b\u300d\u30dc\u30bf\u30f3\u3067\u7d50\u679c\u304c\u51fa\u307e\u3059\u3002<br>\u30da\u30fc\u30b8\u4e0b\u90e8\u3067\u5272\u308a\u52d8\u8a08\u7b97\u3082\u3067\u304d\u307e\u3059\u3002(\u4ea4\u901a\u8cbb\u3068\u98df\u8cbb\u985e\u3092\u5165\u529b\u3057\u3066\u3042\u308c\u3070)<br>\u3082\u3057\u8a08\u7b97\u306e\u9593\u9055\u3044\u306a\u3069\u3001\u4e0d\u5177\u5408\u304c\u3042\u3063\u305f\u6642\u306f<a href=\"mailto:inosuke@mac.com\">\u7ba1\u7406\u8005<\/a>&#x2709;&#xfe0f;\u307e\u3067\u3054\u9023\u7d61\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"Traffic\"><span class=\"tadv-color\" style=\"color:#313131\"><a href=\"#transportBox\">\u4ea4\u901a\u8cbb<\/a><\/span>\u306e\u8a08\u7b97 &#x1f698; | <a href=\"#otherBox\">\u751f\u6d3b\u8cbb\u306a\u3069<\/a>\u306e\u8a08\u7b97&nbsp;&#x1f3d5; | <a href=\"#warikanBox\">\u5272\u308a\u52d8<\/a>\u306e\u8a08\u7b97<br><\/h5>\n\n\n\n<style><!--\n\/* \u4ea4\u901a\u8cbb\u30dc\u30c3\u30af\u30b9 *\/\n.calcBox {\n margin:0.5em 0.2em; padding:0.2em; border:2px solid #ccc; border-radius:0.2em;\n}\nspan.headArea {\n margin:0; padding:0.1em 0 0.1em 2em; font-weight:bold; background:#ddf;\n display:block; width:100%; color:#220; font-size:1.1em;\n}\n\/* \u5165\u529b\u6b04\u306e\u88c5\u98fe *\/\n input.mybox[type=\"text\"] { width:5em; height:2.0em; margin:0; font-size:1.1em; padding:0.2em; }\n input.myres[type=\"text\"] { width:5em; height:1.6em; margin:0; font-size:1.1em; padding:0.2em; border:3px #dde solid; background-color:#ddf; }\np.result { background-color:#eef; text-align:right; padding:0.7em; margin:0; color:#448; }\np.calc { background-color:#f5f5ff; text-align:center; margin-bottom:0.2em; }\ninput.calc[type=\"button\"] { background-color:#aaf; border:2px #88f solid; padding:0.5em 4em; margin:0.1em; }\n@media (max-width: 500px) {\np.calc { font-size:0.7em; }\n}\n--><\/style>\n\n\n\n<!-- \u4ea4\u901a\u8cbb\u306e\u5165\u529b\u6b04 -->\n<DIV class='calcBox' id='transportBox'>\n<SPAN class='headArea'>\u4ea4\u901a\u8cbb<\/SPAN>\n<label>\u884c\u304d\u306e\u8d70\u884c\u8ddd\u96e2\u3000\u3000= <input type=\"text\" value=\"0\" id=\"dist1\" maxlength=\"5\" class=\"mybox\"> km<\/label><br>\n<label>\u5e30\u308a\u306e\u8d70\u884c\u8ddd\u96e2\u3000\u3000= <input type=\"text\" value=\"0\" id=\"dist2\" maxlength=\"5\" class=\"mybox\"> km<\/label><br>\n<label>\u30ac\u30bd\u30ea\u30f3\u5358\u4fa1(1L)\u3000= <input type=\"text\" value=\"135\" id=\"gasprice\" maxlength=\"5\" class=\"mybox\"> \u5186<\/label><br>\n<label>\u71c3\u8cbb(1L\u5f53\u305f\u308a\u306e\u8ddd\u96e2)= <input type=\"text\" value=\"10\" id=\"nenpi\" maxlength=\"5\" class=\"mybox\">km\/L <\/label><br>\n<label>\u884c\u304d\u306e\u9ad8\u901f\u4ee3\u3000\u3000= <input type=\"text\" value=\"0\" id=\"hw1\" maxlength=\"5\" class=\"mybox\"> \u5186<\/label><br>\n<label>\u5e30\u308a\u306e\u9ad8\u901f\u4ee3\u3000\u3000= <input type=\"text\" value=\"0\" id=\"hw2\" maxlength=\"5\" class=\"mybox\"> \u5186<\/label><br>\n<label>\u99d0\u8eca\u5834\u4ee3\u306a\u3069 = <input type=\"text\" value=\"0\" id=\"parking\" maxlength=\"6\" class=\"mybox\"> \u5186<\/label><br>\n<label>\u30d0\u30b9\u3001\u96fb\u8eca\u4ee3 = <input type=\"text\" value=\"0\" id=\"train\" maxlength=\"6\" class=\"mybox\"> \u5186<\/label>\n<p class=\"calc\">\n<span style=\"padding:0.5em;\"><input type=\"button\" value=\"\u8a08\u7b97\u3059\u308b\" class=\"calc\" onclick=\"calcCarfare()\"><\/span><\/p>\n<p class=\"result\">\n<label>\u8d70\u884c\u8ddd\u96e2= <input type=\"text\" value=\"????\" id=\"kyori\" maxlength=\"5\" class=\"myres\"> km<\/label>\u2003\n<label>\u8eca\u4e21\u8cbb(1km\u306710\u5186)= <input type=\"text\" value=\"????\" id=\"syaryou\" maxlength=\"5\" class=\"myres\"> \u5186<\/label><br>\n<label>\u30ac\u30bd\u30ea\u30f3\u6d88\u8cbb\u91cf= <input type=\"text\" value=\"???\" id=\"gasused\" maxlength=\"5\" class=\"myres\"> L<\/label>\u2003\n<label>\u71c3\u6599\u8cbb = <input type=\"text\" value=\"????\" id=\"gasfee\" maxlength=\"6\" class=\"myres\"> \u5186<\/label><br>\n<label>\u9ad8\u901f\u4ee3 = <input type=\"text\" value=\"0\" id=\"highway\" maxlength=\"6\" class=\"myres\"> \u5186<\/label><br>\n<label>&#x1f698; \u4ea4\u901a\u8cbb\u306e\u5408\u8a08 =<input type=\"text\" value=\"???\" id=\"carfare\" maxlength=\"8\" class=\"myres\"> \u5186<\/label><br>\n<span style=\"font-size:0.6em; color:#a44;\">\u203b\u6570\u5024\u306f\u56db\u6368\u4e94\u5165\u3057\u3066\u3044\u307e\u3059<\/span>\n<\/p>\n<\/DIV>\n\n\n\n<DIV class='calcBox' id='otherBox'>\n<SPAN class='headArea'>\u751f\u6d3b\u8cbb(\u98df\u8cbb\u3001\u30c6\u30f3\u30c8\u5834\u4ee3\u306a\u3069) <\/SPAN>\n<label>\u98df\u8cbb\u3000\u3000\u3000= <input type=\"text\" value=\"0\" id=\"food\" maxlength=\"5\" class=\"mybox\"> \u5186<\/label><br>\n<label>\u30ac\u30b9\u4ee3\u3000\u3000 = <input type=\"text\" value=\"0\" id=\"gascan\" maxlength=\"5\" class=\"mybox\"> \u5186<\/label><br>\n<label>\u30c6\u30f3\u5834\u4ee3 \u3000= <input type=\"text\" value=\"0\" id=\"other1\" maxlength=\"5\" class=\"mybox\"> \u5186<\/label><br>\n<label>\u305d\u306e\u4ed6\u3000\u3000=<input type=\"text\" value=\"0\" id=\"other2\" maxlength=\"5\" class=\"mybox\"> \u5186<\/label>\n\n<p class=\"calc\"><span style=\"padding:0.5em;\"><input type=\"button\" value=\"\u8a08\u7b97\u3059\u308b\" class=\"calc\" onclick=\"calcFoods()\">\n<\/span><\/p>\n<p class=\"result\">\n<label>&#x1f3d5; \u98df\u8cbb\u306a\u3069\u306e\u5408\u8a08\u3000= <input type=\"text\" value=\"0\" id=\"ftotal\" class=\"myres\"> \u5186<\/label>\n<\/p>\n<\/DIV>\n\n\n\n<DIV class='calcBox' id='warikanBox'>\n<SPAN class='headArea'>\u5272\u308a\u52d8\u306e\u8a08\u7b97<\/SPAN>\n<p align=\"left\">\n<label>\u53c2\u52a0\u3057\u305f(\u5272\u308a\u52d8\u3059\u308b)\u4eba\u6570   =<input type=\"text\" value=\"2\" id=\"member\" class=\"mybox\"> \u4eba<\/label>\n<\/p>\n<p class=\"result\">\n<label>&#x1f698; + &#x1f3d5; \u4ea4\u901a\u8cbb\u3068\u751f\u6d3b\u8cbb\u306e\u5408\u8a08\u3000<input type=\"text\" value=\"?????\" id=\"gtotal\" class=\"myres\"> \u5186<\/label><br>\n<label>\u4e00\u4eba\u5f53\u305f\u308a\u306e\u91d1\u984d\u3000<input type=\"text\" value=\"?????\" id=\"warikan\" class=\"myres\"> \u5186<\/label><br>\n<span style=\"font-size:0.6em; color:#a44;\">\u203b\u6570\u5024\u306f\u56db\u6368\u4e94\u5165\u3057\u3066\u3044\u307e\u3059<\/span>\n<span style=\"padding:1em;\"><input type=\"button\" value=\"\u30ef\u30ea\u30ab\u30f3\u8a08\u7b97\u3059\u308b\" class=\"calc\" onclick=\"calcWarikan()\">\n<\/span>\n<\/p>\n<\/DIV>\n<BR>\n<div style=\"text-align:center; font-size:0.8em; margin:0.2em;\">\n<a href=\"#Traffic\">[\u4ea4\u901a\u8cbb\u3078&#x1f53c;]<\/a>\u2003|\u2003\n<a href=\"#Foods\">[\u98df\u8cbb\u3078&#x1f53c;]<\/a>\n<\/div>\n\n\n\n<script><!--\n\/\/ \u6307\u5b9a\u3057\u305fid\u306e\u8981\u7d20\u304b\u3089\u30c6\u30ad\u30b9\u30c8\u3092\u5f97\u3066\u6570\u5024\u306b\u3057\u3066\u8fd4\u3059\nfunction getValue( idStr ){\n str = document.getElementById( idStr ).value\n if ( isNaN( str ) ) { self.alert(\"!\u6570\u5b57\u3060\u3051\u306b\u3057\u3066\u304f\u3060\u3055\u3044!\"); \n  document.getElementById( idStr ).value = \"0000\"\n  return 0; }\n return Number( str )\n}\n\/\/ \u6307\u5b9a\u3057\u305fid\u306b\u6570\u5024\u3092\u66f8\u304d\u8fbc\u3080\nfunction putValue( idStr , val ) {\n document.getElementById( idStr ).value = val\n}\n\/\/ \u4ea4\u901a\u8cbb\u306e\u8a08\u7b97\u3001\u7d50\u679c\u51fa\u529b\nfunction calcCarfare(){\ntry {\n d1 = getValue( \"dist1\" )\n d2 = getValue( \"dist2\" )\n dist = d1 + d2 \nnenpi = getValue( \"nenpi\" )\ngasprice = getValue( \"gasprice\" )\nparkfee = getValue( \"parking\" )\nlet trainfee = getValue( \"train\" );\ncarfee = dist * 10;\ngas = Math.round( dist \/ nenpi *100 )\/100 ;\ngasfee = gas * gasprice;\nhighfee = getValue( \"hw1\" ) + getValue( \"hw2\" );\ntotal = gasfee + parkfee + carfee + highfee + trainfee;\nputValue(\"syaryou\" , carfee );\nputValue(\"kyori\" , dist );\nputValue(\"gasused\" , gas );\nputValue(\"gasfee\" , gasfee );\nputValue(\"highway\" , highfee );\nputValue(\"carfare\" , total );\n}\ncatch( error ) {\ndocument.getElementById(\"carfare\").value = \"\u6570\u5b57\u3060\u3051\u306b\u3057\u3066!\";\n}\n}\n\/\/ \u98df\u8cbb\u306a\u3069\u306e\u8a08\u7b97\nfunction calcFoods(){\ntry{\n m = new Array(4)\n m[0] = getValue(\"food\")\n m[1] = getValue(\"gascan\")\n m[2] = getValue(\"other1\")\n m[3] = getValue(\"other2\")\n ftotal = 0\nfor( i=0 ; i<4 ; i++ ) { ftotal += m[i]; }\nputValue(\"ftotal\" , ftotal )\n}\ncatch( error) {\n putValue(\"ftotal\" , \"\u30a8\u30e9\u30fc\u3067\u3059\" )\n}\n}\n\/\/ \u5272\u308a\u52d8\u306e\u8a08\u7b97\u3068\u51fa\u529b\nfunction calcWarikan(){\n hito = getValue(\"member\");\n if ( Number.isInteger( hito ) == false ) {\n  putValue( \"member\" , \"\u6574\u6570\u306b\u3057\u3066!\" );\n  return;\n }\ntry{\n ko = getValue(\"carfare\");\n fo = getValue(\"ftotal\");\n gtotal = ko + fo;\n putValue(\"gtotal\" , gtotal );\n wari = Math.round( gtotal \/ hito * 10 ) \/ 10;\n putValue(\"warikan\" , wari );\n}\ncatch(error){\n putValue(\"gtotal\" , \"\u30a8\u30e9\u30fc\u304c\u3042\u308b\u3088!\" )\n}\n}\n--><\/script>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5c71\u884c\u306e\u8cbb\u7528\u3092\u8a08\u7b97\u3001\u5272\u308a\u52d8\u3059\u308b\u305f\u3081\u306e\u30da\u30fc\u30b8\u3067\u3059\u3002\u67a0\u5185\u306b\u306f\u6570\u5b57\u306e\u307f\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u300c\u8a08\u7b97\u3059\u308b\u300d\u30dc\u30bf\u30f3\u3067 [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":14186,"parent":2361,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-14096","page","type-page","status-publish","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/okazakiac.com\/oac\/wp-json\/wp\/v2\/pages\/14096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/okazakiac.com\/oac\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/okazakiac.com\/oac\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/okazakiac.com\/oac\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/okazakiac.com\/oac\/wp-json\/wp\/v2\/comments?post=14096"}],"version-history":[{"count":0,"href":"https:\/\/okazakiac.com\/oac\/wp-json\/wp\/v2\/pages\/14096\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/okazakiac.com\/oac\/wp-json\/wp\/v2\/pages\/2361"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/okazakiac.com\/oac\/wp-json\/wp\/v2\/media\/14186"}],"wp:attachment":[{"href":"https:\/\/okazakiac.com\/oac\/wp-json\/wp\/v2\/media?parent=14096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}