{"id":212341,"date":"2024-02-01T12:25:15","date_gmt":"2024-02-01T12:25:15","guid":{"rendered":"https:\/\/trybeem.com\/blog\/?page_id=212341"},"modified":"2024-04-03T05:57:58","modified_gmt":"2024-04-03T05:57:58","slug":"tax-calculator-widget","status":"publish","type":"page","link":"https:\/\/trybeem.com\/blog\/tax-calculator-widget\/","title":{"rendered":"Tax Calculator Widget"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"212341\" class=\"elementor elementor-212341\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-379d926 e-flex e-con-boxed e-con e-parent\" data-id=\"379d926\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-d7bc30f e-flex e-con-boxed e-con e-child\" data-id=\"d7bc30f\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-d75c2ae elementor-widget__width-inherit elementor-widget elementor-widget-heading\" data-id=\"d75c2ae\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Income Tax Calculator for 2023-2024\n<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3f4b45d elementor-widget elementor-widget-heading\" data-id=\"3f4b45d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h5 class=\"elementor-heading-title elementor-size-default\">Get a quick and accurate estimate of your federal and state tax refund in seconds for FREE!\n\n<\/h5>\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-668d7ae e-flex e-con-boxed e-con e-child\" data-id=\"668d7ae\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-a8e2da9 elementor-widget elementor-widget-html\" data-id=\"a8e2da9\" data-element_type=\"widget\" data-e-type=\"widget\" id=\"taxcalculationform\" data-widget_type=\"html.default\">\n\t\t\t\t\t<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\">\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n  <title>Tax Form<\/title>\n<\/head>\n<body data-rsssl=1>\n\n  <form id=\"taxForm\" action=\"#\" method=\"post\">\n\n<div class=\"form-row\">\n    <div class=\"form-field\">\n    <span class=\"dropdown-caret\"><i class=\"fa\">&#xf107;<\/i><\/span>\n\n    <label for=\"filingStatus\">Filing Status*<\/label>\n    <select id=\"filingStatus\" name=\"filingStatus\">\n      <option value=\"single\">Single<\/option>\n      <option value=\"marriedJointly\">Married filing jointly<\/option>\n      <option value=\"marriedSeparately\">Married filing separately<\/option>\n      <option value=\"headOfHousehold\">Head of Household<\/option>\n      <option value=\"qualifiedWidower\">Qualified Widower<\/option>\n    <\/select>\n    <\/div>\n\n  \n        <div class=\"form-field\">\n            <span class=\"dropdown-caret\"><i class=\"fa\">&#xf107;<\/i><\/span>\n\n     <label for=\"state\">State*<\/label>\n    <select id=\"state\" name=\"state\">\n      <option value=\"alabama\">Alabama<\/option>\n      <option value=\"alaska\">Alaska<\/option>\n      <option value=\"arizona\">Arizona<\/option>\n      <option value=\"arkansas\">Arkansas<\/option>\n      <option value=\"california\">California<\/option>\n      <option value=\"colorado\">Colorado<\/option>\n      <option value=\"connecticut\">Connecticut<\/option>\n      <option value=\"delaware\">Delaware<\/option>\n      <option value=\"florida\">Florida<\/option>\n      <option value=\"georgia\">Georgia<\/option>\n      <option value=\"hawaii\">Hawaii<\/option>\n      <option value=\"idaho\">Idaho<\/option>\n      <option value=\"illinois\">Illinois<\/option>\n      <option value=\"indiana\">Indiana<\/option>\n      <option value=\"iowa\">Iowa<\/option>\n      <option value=\"kansas\">Kansas<\/option>\n      <option value=\"kentucky\">Kentucky<\/option>\n      <option value=\"louisiana\">Louisiana<\/option>\n      <option value=\"maine\">Maine<\/option>\n      <option value=\"maryland\">Maryland<\/option>\n      <option value=\"massachusetts\">Massachusetts<\/option>\n      <option value=\"michigan\">Michigan<\/option>\n      <option value=\"minnesota\">Minnesota<\/option>\n      <option value=\"mississippi\">Mississippi<\/option>\n      <option value=\"missouri\">Missouri<\/option>\n      <option value=\"montana\">Montana<\/option>\n      <option value=\"nebraska\">Nebraska<\/option>\n      <option value=\"nevada\">Nevada<\/option>\n      <option value=\"newHampshire\">New Hampshire<\/option>\n      <option value=\"newJersey\">New Jersey<\/option>\n      <option value=\"newMexico\">New Mexico<\/option>\n      <option value=\"newYork\">New York<\/option>\n      <option value=\"northCarolina\">North Carolina<\/option>\n      <option value=\"northDakota\">North Dakota<\/option>\n      <option value=\"ohio\">Ohio<\/option>\n      <option value=\"oklahoma\">Oklahoma<\/option>\n      <option value=\"oregon\">Oregon<\/option>\n      <option value=\"pennsylvania\">Pennsylvania<\/option>\n      <option value=\"rhodeIsland\">Rhode Island<\/option>\n      <option value=\"southCarolina\">South Carolina<\/option>\n      <option value=\"southDakota\">South Dakota<\/option>\n      <option value=\"tennessee\">Tennessee<\/option>\n      <option value=\"texas\">Texas<\/option>\n      <option value=\"utah\">Utah<\/option>\n      <option value=\"vermont\">Vermont<\/option>\n      <option value=\"virginia\">Virginia<\/option>\n      <option value=\"washington\">Washington<\/option>\n      <option value=\"westVirginia\">West Virginia<\/option>\n      <option value=\"wisconsin\">Wisconsin<\/option>\n      <option value=\"wyoming\">Wyoming<\/option>\n      <option value=\"dc\">District of Columbia<\/option>\n    <\/select>\n    <\/div>\n    \n    <\/div>\n\n<div class=\"form-row\">\n    <div class=\"form-field\">\n\n\n  <label for=\"income\">Income*<\/label>\n<div id=\"income-container\">\n <span id=\"incomespan\"> <input type=\"number\" id=\"income\" name=\"income\" value=\"100000\" required><\/span>\n  \n<\/div>\n\n\n\n  <\/div>\n\n   \n    <div class=\"form-field\">\n<div id=\"taxes-witheld-container\">\n    <label for=\"taxesWithheld\">Taxes Withheld (Federal or State)<\/label>\n   <span id=\"taxeswitheldspan\">  <input type=\"number\" id=\"taxesWithheld\" name=\"taxesWithheld\" value=\"1000\"><\/span>\n    <\/div>\n<br>\n<\/div>\n<\/div>\n\n    <input id=\"submit-btn\" type=\"submit\" value=\"Calculate Now\">\n\n  <\/form>\n\n<\/body>\n<\/html>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-77dc173 e-grid e-con-boxed e-con e-child\" data-id=\"77dc173\" data-element_type=\"container\" data-e-type=\"container\" id=\"taxcalculationresults\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-e81c7cc e-con-full e-flex e-con e-child\" data-id=\"e81c7cc\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-eb1dd70 elementor-widget__width-inherit elementor-widget elementor-widget-heading\" data-id=\"eb1dd70\" data-element_type=\"widget\" data-e-type=\"widget\" id=\"weestimateyouwill\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">We estimate you will owe*\n<\/h2>\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-7cba128 e-flex e-con-boxed e-con e-child\" data-id=\"7cba128\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f535c95 elementor-widget elementor-widget-heading\" data-id=\"f535c95\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">$<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bfb506c elementor-widget elementor-widget-heading\" data-id=\"bfb506c\" data-element_type=\"widget\" data-e-type=\"widget\" id=\"oweorrefund\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">0<\/h2>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-985ffba e-flex e-con-boxed e-con e-child\" data-id=\"985ffba\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ec3ff99 elementor-widget elementor-widget-heading\" data-id=\"ec3ff99\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Total income<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ed8f0f3 elementor-widget__width-auto elementor-widget elementor-widget-html\" data-id=\"ed8f0f3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<div>$<span id=\"totalincome\">0<\/span><\/div>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-7cd5e77 e-flex e-con-boxed e-con e-child\" data-id=\"7cd5e77\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-628f426 elementor-widget elementor-widget-heading\" data-id=\"628f426\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Total taxes withheld<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a5d48d7 elementor-widget__width-auto elementor-widget elementor-widget-html\" data-id=\"a5d48d7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<div>$<span id=\"totaltaxeswithheld\">0<\/span><\/div>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c98c8b9 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"c98c8b9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-469bf00 e-flex e-con-boxed e-con e-child\" data-id=\"469bf00\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4184c43 elementor-widget elementor-widget-heading\" data-id=\"4184c43\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Federal income taxes<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a5a1134 elementor-widget__width-auto elementor-widget elementor-widget-html\" data-id=\"a5a1134\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<div>$<span id=\"federalincometaxes\">0<\/span><\/div>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-07bd190 e-flex e-con-boxed e-con e-child\" data-id=\"07bd190\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-09cd925 elementor-widget elementor-widget-heading\" data-id=\"09cd925\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><span id=\"statename\">Alabama<\/span> income taxes<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4da0368 elementor-widget__width-auto elementor-widget elementor-widget-html\" data-id=\"4da0368\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<div>$<span id=\"stateincometaxes\">0<\/span><\/div>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-8483eb6 e-flex e-con-boxed e-con e-child\" data-id=\"8483eb6\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-8748aba elementor-widget elementor-widget-heading\" data-id=\"8748aba\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Total income tax<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-45b716f elementor-widget__width-auto elementor-widget elementor-widget-html\" data-id=\"45b716f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<div>$<span id=\"totalincometax\">0<\/span><\/div>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-c6e478c e-flex e-con-boxed e-con e-child\" data-id=\"c6e478c\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4046a29 elementor-widget__width-initial elementor-widget elementor-widget-html\" data-id=\"4046a29\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<div>\n  <canvas id=\"tax-chart\"><\/canvas>\n<\/div>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fe2e3d3 elementor-align-justify elementor-widget elementor-widget-button\" data-id=\"fe2e3d3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"#\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">File Taxes<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1dfc65a elementor-align-justify elementor-widget elementor-widget-button\" data-id=\"1dfc65a\" data-element_type=\"widget\" data-e-type=\"widget\" id=\"calculateagain\" data-widget_type=\"button.default\">\n\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"#\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Calculate again<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7cb9cf5 elementor-widget elementor-widget-html\" data-id=\"7cb9cf5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<script src=\"https:\/\/cdn.jsdelivr.net\/npm\/chart.js\"><\/script>\n\n<script>\n\n\n    \/\/ Function to calculate federal standard deduction based on filing status\n    function calculateFederalStandardDeduction(filingStatus) {\n        if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n            return 13850;\n        } else if (filingStatus === 'marriedJointly' || filingStatus === 'qualifiedWidower') {\n            return 27700;\n        } else if (filingStatus === 'headOfHousehold') {\n            return 20800;\n        } else {\n            return 0; \/\/ Default value if filing status is not recognized\n        }\n    }\n\n    \/\/ Function to calculate state standard deduction based on state and filing status\n    function calculateStateStandardDeduction(state, filingStatus) {\n        switch (state) {\n            case 'alabama':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 3000;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 8500;\n                }\n                break;\n         \n            case 'arizona':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 13850;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 27700;\n                }\n                break;\n            case 'arkansas':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 2270;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 4540;\n                }\n                break;\n            case 'california':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 5202;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 10404;\n                }\n                break;\n            case 'colorado':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 13850;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 27700;\n                }\n                break;\n            case 'connecticut':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 16000; \n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 32000; \n                }\n                break;\n            case 'delaware':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 3250;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 6500;\n                }\n                break;\n            case 'florida':\n                return 0; \/\/ Florida does not have state income tax\n                break;\n            case 'georgia':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 5400;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 7100;\n                }\n                break;\n            case 'hawaii':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 2200;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 4400;\n                }\n                break;\n            case 'idaho':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 13850;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 27700;\n                }\n                break;\n            \n            \n            case 'kansas':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 3500;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 8000;\n                }\n                break;\n            case 'kentucky':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 2770;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 5540;\n                }\n                break;\n         \n            case 'maine':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 13850;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 27700;\n                }\n                break;\n            case 'maryland':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 2400;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 4850;\n                }\n                break;\n           \n            case 'minnesota':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 13825;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 27650;\n                }\n                break;\n            case 'mississippi':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 2300;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 4600;\n                }\n                break;\n            case 'missouri':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 13850;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 27700;\n                }\n                break;\n            case 'montana':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 5540;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 11080;\n                }\n                break;\n            case 'nebraska':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 7900;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 15800;\n                }\n                break;\n            \n            case 'newMexico':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 13850;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 27700;\n                }\n                break;\n            case 'newYork':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 8000;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 16050;\n                }\n                break;\n            case 'northCarolina':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 12750;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 25500;\n                }\n                break;\n            case 'northDakota':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 13850;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 27700;\n                }\n                break;\n            \n            case 'oklahoma':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 6350;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 12700;\n                }\n                break;\n            case 'oregon':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 2605;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 5210;\n                }\n                break;\n            \n            case 'rhodeIsland':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 10000;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 20050;\n                }\n                break;\n            case 'southCarolina':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 13850;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 27700;\n                }\n                break;\n            \n            \n            case 'utah':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 2430;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 4860;\n                }\n                break;\n            case 'vermont':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 6500;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 13050;\n                }\n                break;\n            case 'virginia':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 8000;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 16000;\n                }\n                break;\n            \n            case 'westVirginia':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 2000;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 4000;\n                }\n                break;\n            case 'wisconsin':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 12760;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 23620;\n                }\n                break;\n          \n            case 'dc':\n                if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n                    return 13850;\n                } else if (filingStatus === 'marriedJointly' || filingStatus === 'marriedSeparately') {\n                    return 27700;\n                }\n                break;\n            default:\n                return 0; \/\/ Default value if state is not recognized\n        }\n    }\n\n    \/\/ Function to calculate total federal tax deduction\n    \/\/ function calculateTotalFederalTaxDeduction(filingStatus) {\n    \/\/     let federalStandardDeduction = calculateFederalStandardDeduction(filingStatus);\n    \/\/     let stateStandardDeduction = calculateStateStandardDeduction(document.getElementById('state').value, filingStatus);\n        \n    \/\/     return federalStandardDeduction + stateStandardDeduction;\n    \/\/ }\n\n\/\/ Function to calculate total federal tax based on filing status and federal taxable income\n    function calculateTotalFederalTax(filingStatus, federalTaxableIncome) {\n        let totalFederalTax = 0;\n        let taxBrackets = [];\n        switch (filingStatus) {\n            case 'single':\n                \n                 taxBrackets = [\n                    { rate: 0.1, threshold: 11000 },\n                    { rate: 0.12, threshold: 33725 },\n                    { rate: 0.22, threshold: 50650 },\n                    { rate: 0.24, threshold: 86725 },\n                    { rate: 0.32, threshold: 49150 },\n                    { rate: 0.35, threshold: 346875 },\n                    { rate: 0.37, threshold: Infinity }\n                ];\n                break;\n            case 'marriedJointly':\n            case 'qualifiedWidower':\n                taxBrackets = [\n                    { rate: 0.1, threshold: 22000 },\n                    { rate: 0.12, threshold: 67450 },\n                    { rate: 0.22, threshold: 101300 },\n                    { rate: 0.24, threshold: 173450 },\n                    { rate: 0.32, threshold: 98300 },\n                    { rate: 0.35, threshold: 231250 },\n                    { rate: 0.37, threshold: Infinity }\n                ];\n                break;\n            case 'marriedSeparately':\n                taxBrackets = [\n                    { rate: 0.1, threshold: 11000 },\n                    { rate: 0.12, threshold: 33725 },\n                    { rate: 0.22, threshold: 50650 },\n                    { rate: 0.24, threshold: 86725 },\n                    { rate: 0.32, threshold: 49150 },\n                    { rate: 0.35, threshold: 115625 },\n                    { rate: 0.37, threshold: Infinity }\n                ];\n                break;\n            case 'headOfHousehold':\n                taxBrackets = [\n                    { rate: 0.1, threshold: 15700 },\n                    { rate: 0.12, threshold: 44150 },\n                    { rate: 0.22, threshold: 35500 },\n                    { rate: 0.24, threshold: 86750 },\n                    { rate: 0.32, threshold: 49150 },\n                    { rate: 0.35, threshold: 346850 },\n                    { rate: 0.37, threshold: Infinity }\n                ];\n                break;\n            default:\n                break;\n        }\n        let remainingIncome = federalTaxableIncome;\n        for (let bracket of taxBrackets) {\n            if (remainingIncome <= 0) {\n                break;\n            }\n            let taxableAmountInBracket = Math.min(remainingIncome, bracket.threshold);\n            totalFederalTax += taxableAmountInBracket * bracket.rate;\n            remainingIncome -= taxableAmountInBracket;\n        }\n        return totalFederalTax;\n    }\n    \n    \n    \/\/ Function to calculate state personal exemption based on state and filing status\nfunction calculateStatePersonalExemption(state, filingStatus) {\n    switch (state) {\n        case 'alabama':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 1500 : 3000;\n        case 'connecticut':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 15000 : 24000;\n        case 'georgia':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 2700 : 7400;\n        case 'hawaii':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 1144 : 2288;\n        case 'illinois':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 2425 : 2850;\n        case 'indiana':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 1000 : 2000;\n        case 'kansas':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 2250 : 4500;\n        case 'louisiana':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 4500 : 9000;\n        case 'maine':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 4700 : 9400;\n        case 'maryland':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 3200 : 6400;\n        case 'massachusetts':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 4400 : 8800;\n        case 'michigan':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 5000 : 10000;\n        case 'mississippi':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 6000 : 12000;\n        case 'montana':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 2960 : 5920;\n        case 'newHampshire':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 2400 : 4800;\n        case 'newJersey':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 1000 : 2000;\n        case 'ohio':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 2400 : 4800;\n        case 'oklahoma':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 1000 : 2000;\n        case 'rhodeIsland':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 4700 : 9400;\n        case 'vermont':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 4500 : 9000;\n        case 'virginia':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 930 : 1860;\n        case 'westVirginia':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 2000 : 4000;\n        case 'wisconsin':\n            return filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower' ? 700 : 1400;\n        default:\n            return 0; \/\/ Default value if state is not recognized\n    }\n}\n\n\n\n\/\/ Function to calculate state tax based on state, filing status, and state taxable income\n\nfunction calculateStateTax(state, filingStatus, stateTaxableIncome) {\n    let taxBrackets;\n    let taxCredit=0;\n    let stateTax = 0;\n\n    \/\/ Determine tax brackets and tax credit based on state and filing status\n    switch (state.toLowerCase()) {\n        \n        case 'alabama':\n    if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n        taxBrackets = [\n            { rate: 0.02, threshold: 500 },\n            { rate: 0.04, threshold: 3000 - 500 },\n            { rate: 0.05, threshold: Infinity }\n        ];\n         taxCredit = 0;\n    } else {\n        taxBrackets = [\n            { rate: 0.02, threshold: 1000 },\n            { rate: 0.04, threshold: 6000 - 1000 },\n            { rate: 0.05, threshold: Infinity }\n        ];\n           taxCredit = 0;\n    }\n    break;\n    \n        case 'alaska':\n    stateTax = 0;\n    break;\n    \n        case 'arizona':\n             return stateTaxableIncome * 0.025;\n\n           break;\n\ncase 'arkansas':\n    if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n        taxBrackets = [\n            { rate: 0.02, threshold: 4300 },\n            { rate: 0.04, threshold: 8500 - 4300 },\n            { rate: 0.049, threshold: Infinity }\n        ];\n        taxCredit = 29;\n    } else {\n        taxBrackets = [\n            { rate: 0.02, threshold: 4300 },\n            { rate: 0.04, threshold: 8500 - 4300 },\n            { rate: 0.049, threshold: Infinity }\n        ];\n        taxCredit = 58;\n    }\n    break;\n\n\n    \n        case 'california':\n            if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n                taxBrackets = [\n                    { rate: 0.01, threshold: 10099 },\n                    { rate: 0.02, threshold: 23942 - 10099 },\n                    { rate: 0.04, threshold: 37788 - 23942 },\n                    { rate: 0.06, threshold: 52455 - 37788 },\n                    { rate: 0.08, threshold: 66295 - 52455 },\n                    { rate: 0.093, threshold: 338639 - 66295 },\n                    { rate: 0.103, threshold: 406364 - 338639 },\n                    { rate: 0.113, threshold: 677275 - 406364 },\n                    { rate: 0.123, threshold: 1000000 - 677275 },\n                    { rate: 0.133, threshold: Infinity }\n                ];\n\n            } else {\n                taxBrackets = [\n                    { rate: 0.01, threshold: 20198 },\n                    { rate: 0.02, threshold: 47884 - 20198 },\n                    { rate: 0.04, threshold: 75576 - 47884 },\n                    { rate: 0.06, threshold: 104910 - 75576 },\n                    { rate: 0.08, threshold: 132590 - 104910 },\n                    { rate: 0.093, threshold: 677278 - 132590 },\n                    { rate: 0.103, threshold: 812728 - 677278 },\n                    { rate: 0.113, threshold: 1000000 - 812728 },\n                    { rate: 0.123, threshold: 1354550 - 1000000 },\n                    { rate: 0.133, threshold: Infinity }\n                ];\n            }\n            \n              if (filingStatus === 'marriedSeparately' || filingStatus === 'marriedJointly')\n    {\n        taxCredit = 280;\n    }\n    else\n    {\n        taxCredit = 140;\n    }\n            break;\n            \n            case 'colorado':\n     return stateTaxableIncome * 0.044;\n\n    break;\n    \n        case 'connecticut':\n    if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n        taxBrackets = [\n            { rate: 0.03, threshold: 10000 },\n            { rate: 0.05, threshold: 50000 - 10000 },\n            { rate: 0.055, threshold: 100000 - 50000 },\n            { rate: 0.06, threshold: 200000 - 100000 },\n            { rate: 0.065, threshold: 250000 - 200000 },\n            { rate: 0.069, threshold: 500000 - 250000 },\n            { rate: 0.0699, threshold: Infinity }\n        ];\n    } else {\n        taxBrackets = [\n            { rate: 0.03, threshold: 20000 },\n            { rate: 0.05, threshold: 100000 - 20000 },\n            { rate: 0.055, threshold: 200000 - 100000 },\n            { rate: 0.06, threshold: 400000 - 200000 },\n            { rate: 0.065, threshold: 500000 - 400000 },\n            { rate: 0.069, threshold: 1000000 - 500000 },\n            { rate: 0.0699, threshold: Infinity }\n        ];\n    }\n    taxCredit = 0;\n    break;\n\n\n        case 'delaware':\n    if (filingStatus === 'single' || filingStatus === 'headOfHousehold' || filingStatus === 'qualifiedWidower') {\n        taxBrackets = [\n            { rate: 0, threshold: 2000 },\n            { rate: 0.022, threshold: 5000 - 2000 },\n            { rate: 0.039, threshold: 10000 - 5000 },\n            { rate: 0.048, threshold: 20000 - 10000 },\n            { rate: 0.052, threshold: 25000 - 20000 },\n            { rate: 0.0555, threshold: 60000 - 25000 },\n            { rate: 0.066, threshold: Infinity }\n        ];\n        taxCredit = 110;\n    } else {\n        taxBrackets = [\n            { rate: 0, threshold: 2000 },\n            { rate: 0.022, threshold: 5000 - 2000 },\n            { rate: 0.039, threshold: 10000 - 5000 },\n            { rate: 0.048, threshold: 20000 - 10000 },\n            { rate: 0.052, threshold: 25000 - 20000 },\n            { rate: 0.0555, threshold: 60000 - 25000 },\n            { rate: 0.066, threshold: Infinity }\n        ];\n        taxCredit = 220;\n    }\n    break;\n\n        case 'florida':\n    return 0;\n    break;\n    \n    case 'georgia':\n    if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n        taxBrackets = [\n            { rate: 0.01, threshold: 750 },\n            { rate: 0.02, threshold: 2250 - 750 },\n            { rate: 0.03, threshold: 3750 - 2250 },\n            { rate: 0.04, threshold: 5250 - 3750 },\n            { rate: 0.05, threshold: 7000 - 5250 },\n            { rate: 0.0575, threshold: Infinity }\n        ];\n    } else {\n        taxBrackets = [\n            { rate: 0.01, threshold: 1000 },\n            { rate: 0.02, threshold: 3000 - 1000 },\n            { rate: 0.03, threshold: 5000 - 3000 },\n            { rate: 0.04, threshold: 7000 - 5000 },\n            { rate: 0.05, threshold: 10000 - 7000 },\n            { rate: 0.0575, threshold: Infinity }\n        ];\n    }\n    break;\n    \n   \n\n    \n    \n    case 'hawaii':\n    if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n        taxBrackets = [\n            { rate: 0.014, threshold: 2400 },\n            { rate: 0.032, threshold: 4800 - 2400 },\n            { rate: 0.055, threshold: 9600 - 4800 },\n            { rate: 0.064, threshold: 14400 - 9600 },\n            { rate: 0.068, threshold: 19200 - 14400 },\n            { rate: 0.072, threshold: 24000 - 19200 },\n            { rate: 0.076, threshold: 36000 - 24000 },\n            { rate: 0.079, threshold: 48000 - 36000 },\n            { rate: 0.0825, threshold: 150000 - 48000 },\n            { rate: 0.09, threshold: 175000 - 150000 },\n            { rate: 0.10, threshold: 200000 - 175000 },\n            { rate: 0.11, threshold: Infinity }\n        ];\n    } else {\n        taxBrackets = [\n            { rate: 0.014, threshold: 4800 },\n            { rate: 0.032, threshold: 9600 - 4800 },\n            { rate: 0.055, threshold: 19200 - 9600 },\n            { rate: 0.064, threshold: 28800 - 19200 },\n            { rate: 0.068, threshold: 38400 - 28800 },\n            { rate: 0.072, threshold: 48000 - 38400 },\n            { rate: 0.076, threshold: 72000 - 48000 },\n            { rate: 0.079, threshold: 96000 - 72000 },\n            { rate: 0.0825, threshold: 300000 - 96000 },\n            { rate: 0.09, threshold: 350000 - 300000 },\n            { rate: 0.10, threshold: 400000 - 350000 },\n            { rate: 0.11, threshold: Infinity }\n        ];\n    }\n  \n    break;\n    \n    \n    case 'idaho':\n    return stateTaxableIncome * 0.058;\n    break;\n\ncase 'illinois':\n     return stateTaxableIncome * 0.0495;\n    break;\n\ncase 'indiana':\n  return stateTaxableIncome * 0.0315;    \n    break;\n\n    case 'iowa':\n    if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n        taxBrackets = [\n            { rate: 0.044, threshold: 6000 },\n            { rate: 0.0482, threshold: 30000 - 6000 },\n            { rate: 0.057, threshold: 75000 - 30000 },\n            { rate: 0.06, threshold: Infinity }\n        ];\n    } else {\n        taxBrackets = [\n            { rate: 0.044, threshold: 12000 },\n            { rate: 0.0482, threshold: 60000 - 12000 },\n            { rate: 0.057, threshold: 150000 - 60000 },\n            { rate: 0.06, threshold: Infinity }\n        ];\n    }\n    \n     if (filingStatus === 'marriedSeparately' || filingStatus === 'marriedJointly')\n    {\n        taxCredit = 80;\n    }\n    else\n    {\n        taxCredit = 40;\n    }\n    \n    break;\n    \n    case 'kansas':\n    if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n        taxBrackets = [\n            { rate: 0.031, threshold: 15000 },\n            { rate: 0.0525, threshold: 30000 - 15000 },\n            { rate: 0.057, threshold: Infinity }\n        ];\n    } else {\n        taxBrackets = [\n            { rate: 0.031, threshold: 30000 },\n            { rate: 0.0525, threshold: 60000 - 30000 },\n            { rate: 0.057, threshold: Infinity }\n        ];\n    }\n    break;\n\n    case 'kentucky':\n    return stateTaxableIncome * 0.045;    \n\n    break;\n    \n    case 'louisiana':\n    if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n        taxBrackets = [\n            { rate: 0.0185, threshold: 12500 },\n            { rate: 0.035, threshold: 50000 - 12500 },\n            { rate: 0.0425, threshold: Infinity }\n        ];\n    } else {\n        taxBrackets = [\n            { rate: 0.0185, threshold: 25000 },\n            { rate: 0.035, threshold: 100000 - 25000 },\n            { rate: 0.0425, threshold: Infinity }\n        ];\n    }\n    break;\n    \n    case 'maine':\n    if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n        taxBrackets = [\n            { rate: 0.058, threshold: 24500 },\n            { rate: 0.0675, threshold: 58050 - 24500 },\n            { rate: 0.0715, threshold: Infinity }\n        ];\n    } else {\n        taxBrackets = [\n            { rate: 0.058, threshold: 49050 },\n            { rate: 0.0675, threshold: 116100 - 49050 },\n            { rate: 0.0715, threshold: Infinity }\n        ];\n    }\n    break;\n    \n    \n    case 'maryland':\n    if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n        taxBrackets = [\n            { rate: 0.02, threshold: 1000 },\n            { rate: 0.03, threshold: 2000 - 1000 },\n            { rate: 0.04, threshold: 3000 - 2000 },\n            { rate: 0.0475, threshold: 100000 - 3000 },\n            { rate: 0.05, threshold: 125000 - 100000 },\n            { rate: 0.0525, threshold: 150000 - 125000 },\n            { rate: 0.055, threshold: 250000 - 150000 },\n            { rate: 0.0575, threshold: Infinity - 250000 }\n        ];\n    } else {\n        taxBrackets = [\n            { rate: 0.02, threshold: 1000 },\n            { rate: 0.03, threshold: 2000 - 1000 },\n            { rate: 0.04, threshold: 3000 - 2000 },\n            { rate: 0.0475, threshold: 150000 - 3000 },\n            { rate: 0.05, threshold: 175000 - 150000 },\n            { rate: 0.0525, threshold: 225000 - 175000 },\n            { rate: 0.055, threshold: 300000 - 225000 },\n            { rate: 0.0575, threshold: Infinity - 300000 }\n        ];\n    }\n    taxCredit = 0; \/\/ No tax credit for Maryland\n    break;\n    \n    case 'massachusetts':\n    taxBrackets = [\n        { rate: 0.05, threshold: 1000000 },\n        { rate: 0.09, threshold: Infinity }\n    ];\n    break;\n\n    case 'michigan':\n    return stateTaxableIncome*0.0425;\n    break;\n\n    case 'minnesota':\n    if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n        taxBrackets = [\n            { rate: 0.0535, threshold: 30070 },\n            { rate: 0.068, threshold: 98760 - 30070 },\n            { rate: 0.0785, threshold: 183340 - 98760 },\n            { rate: 0.0985, threshold: Infinity }\n        ];\n    } else {\n        taxBrackets = [\n            { rate: 0.0535, threshold: 43950 },\n            { rate: 0.068, threshold: 174610 - 43950 },\n            { rate: 0.0785, threshold: 304970 - 174610 },\n            { rate: 0.0985, threshold: Infinity }\n        ];\n    }\n    break;\n    \n    case 'mississippi':\n    taxBrackets = [\n        { rate: 0.0, threshold: 10000 },\n        { rate: 0.05, threshold: Infinity }\n    ];\n    break;\n    \n    case 'missouri':\n    taxBrackets = [\n        { rate: 0, threshold: 1121 },\n        { rate: 0.02, threshold: 2242 - 1121 },\n        { rate: 0.025, threshold: 3363 - 2242 },\n        { rate: 0.03, threshold: 4484 - 3363 },\n        { rate: 0.035, threshold: 5605 - 4484 },\n        { rate: 0.04, threshold: 6726 - 5605 },\n        { rate: 0.045, threshold: 7847 - 6726 },\n        { rate: 0.0495, threshold: Infinity }\n    ];\n    break;\n\ncase 'montana':\n    taxBrackets = [\n        { rate: 0.01, threshold: 3600 },\n        { rate: 0.02, threshold: 9700 - 3600 },\n        { rate: 0.03, threshold: 13000 - 9700 },\n        { rate: 0.04, threshold: 16800 - 13000 },\n        { rate: 0.05, threshold: 21600 - 16800 },\n        { rate: 0.06, threshold: Infinity }\n    ];\n    break;\n    \n    case 'nebraska':\n    if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n        taxBrackets = [\n            { rate: 0.0246, threshold: 3700 },\n            { rate: 0.0351, threshold: 22170 - 3700 },\n            { rate: 0.0501, threshold: 35730 - 22170 },\n            { rate: 0.0664, threshold: Infinity }\n        ];\n    } else {\n        taxBrackets = [\n            { rate: 0.0246, threshold: 7390 },\n            { rate: 0.0351, threshold: 44350 - 7390 },\n            { rate: 0.0501, threshold: 71460 - 44350 },\n            { rate: 0.0664, threshold: Infinity }\n        ];\n    }\n    \n     if (filingStatus === 'marriedSeparately' || filingStatus === 'marriedJointly')\n    {\n        taxCredit = 314;\n    }\n    else\n    {\n        taxCredit = 157;\n    }\n    break;\n    \n    case 'nevada':\n    stateTax = 0;\n    break;\n\n    case 'newHampshire':\n    stateTax = 0;\n    break;\n    \n    case 'newJersey':\n    if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n        taxBrackets = [\n            { rate: 0.014, threshold: 20000 },\n            { rate: 0.0175, threshold: 35000 - 20000 },\n            { rate: 0.035, threshold: 40000 - 35000 },\n            { rate: 0.0553, threshold: 75000 - 40000 },\n            { rate: 0.0637, threshold: 500000 - 75000 },\n            { rate: 0.0897, threshold: 1000000 - 500000 },\n            { rate: 0.1075, threshold: Infinity }\n        ];\n    } else {\n        taxBrackets = [\n            { rate: 0.014, threshold: 20000 },\n            { rate: 0.0175, threshold: 50000 - 20000 },\n            { rate: 0.0245, threshold: 70000 - 50000 },\n            { rate: 0.035, threshold: 80000 - 70000 },\n            { rate: 0.0553, threshold: 150000 - 80000 },\n            { rate: 0.0637, threshold: 500000 - 150000 },\n            { rate: 0.0897, threshold: 1000000 - 500000 },\n            { rate: 0.1075, threshold: Infinity }\n        ];\n    }\n    break;\n    \n    case 'newMexico':\n    if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n        taxBrackets = [\n            { rate: 0.017, threshold: 5500 },\n            { rate: 0.032, threshold: 11000 - 5500 },\n            { rate: 0.047, threshold: 16000 - 11000 },\n            { rate: 0.049, threshold: 210000 - 16000 },\n            { rate: 0.059, threshold: Infinity }\n        ];\n    } else {\n        taxBrackets = [\n            { rate: 0.017, threshold: 8000 },\n            { rate: 0.032, threshold: 16000 - 8000 },\n            { rate: 0.047, threshold: 24000 - 16000 },\n            { rate: 0.049, threshold: 315000 - 24000 },\n            { rate: 0.059, threshold: Infinity }\n        ];\n    }\n    break;\n\n\n    case 'newYork':\n    if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n        taxBrackets = [\n            { rate: 0.04, threshold: 8500 },\n            { rate: 0.045, threshold: 11700 - 8500 },\n            { rate: 0.0525, threshold: 13900 - 11700 },\n            { rate: 0.055, threshold: 80650 - 13900 },\n            { rate: 0.06, threshold: 215400 - 80650 },\n            { rate: 0.0685, threshold: 1077550 - 215400 },\n            { rate: 0.0965, threshold: 5000000 - 1077550 },\n            { rate: 0.103, threshold: 25000000 - 5000000 },\n            { rate: 0.109, threshold: Infinity }\n        ];\n    } else {\n        taxBrackets = [\n            { rate: 0.04, threshold: 17150 },\n            { rate: 0.045, threshold: 23600 - 17150 },\n            { rate: 0.0525, threshold: 27900 - 23600 },\n            { rate: 0.055, threshold: 161550 - 27900 },\n            { rate: 0.06, threshold: 323200 - 161550 },\n            { rate: 0.0685, threshold: 2155350 - 323200 },\n            { rate: 0.0965, threshold: 5000000 - 2155350 },\n            { rate: 0.103, threshold: 25000000 - 5000000 },\n            { rate: 0.109, threshold: Infinity }\n        ];\n    }\n    break;\n    \n    case 'northCarolina':\n        return stateTaxableIncome*0.0475;\n        break;\n        \n    case 'northDakota':\n    if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n        taxBrackets = [\n            { rate: 0.011, threshold: 41775 },\n            { rate: 0.0204, threshold: 101050 - 41775 },\n            { rate: 0.0227, threshold: 210825 - 101050 },\n            { rate: 0.0264, threshold: 458350 - 210825 },\n            { rate: 0.029, threshold: Infinity }\n        ];\n    } else {\n        taxBrackets = [\n            { rate: 0.011, threshold: 69700 },\n            { rate: 0.0204, threshold: 168450 - 69700 },\n            { rate: 0.0227, threshold: 256650 - 168450 },\n            { rate: 0.0264, threshold: 458350 - 256650 },\n            { rate: 0.029, threshold: Infinity }\n        ];\n    }\n    break;\n    \n    case 'ohio':\n    taxBrackets = [\n        { rate: 0, threshold: 26050 },\n        { rate: 0.0277, threshold: 46100 - 26050 },\n        { rate: 0.0323, threshold: 92150 - 46100 },\n        { rate: 0.0369, threshold: 115300 - 92150 },\n        { rate: 0.0399, threshold: Infinity }\n    ];\n    break;\n\n    case 'oklahoma':\n    if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n        taxBrackets = [\n            { rate: 0.0025, threshold: 1000 },\n            { rate: 0.0075, threshold: 2500 - 1000 },\n            { rate: 0.0175, threshold: 3750 - 2500 },\n            { rate: 0.0275, threshold: 4900 - 3750 },\n            { rate: 0.0375, threshold: 7200 - 4900 },\n            { rate: 0.0475, threshold: Infinity }\n        ];\n    } else {\n        taxBrackets = [\n            { rate: 0.0025, threshold: 2000 },\n            { rate: 0.0075, threshold: 5000 - 2000 },\n            { rate: 0.0175, threshold: 7500 - 5000 },\n            { rate: 0.0275, threshold: 9800 - 7500 },\n            { rate: 0.0375, threshold: 12200 - 9800 },\n            { rate: 0.0475, threshold: Infinity }\n        ];\n    }\n    break;\n    \n    case 'oregon':\n    if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n        taxBrackets = [\n            { rate: 0.0475, threshold: 4050 },\n            { rate: 0.0675, threshold: 10200 - 4050 },\n            { rate: 0.0875, threshold: 125000 - 10200 },\n            { rate: 0.099, threshold: Infinity }\n        ];\n    } else {\n        taxBrackets = [\n            { rate: 0.0475, threshold: 8100 },\n            { rate: 0.0675, threshold: 20400 - 8100 },\n            { rate: 0.0875, threshold: 250000 - 20400 },\n            { rate: 0.099, threshold: Infinity }\n        ];\n    }\n\n    if (filingStatus === 'marriedSeparately' || filingStatus === 'marriedJointly')\n    {\n        taxCredit = 472;\n    }\n    else\n    {\n        taxCredit = 236;\n    }\n        break;\n        \n    case 'pennsylvania':\n    return stateTaxableIncome*0.0307;\n    break;\n    \n    case 'rhodeIsland':\n    taxBrackets = [\n        { rate: 0.0375, threshold: 68200 },\n        { rate: 0.0475, threshold: 155050 - 68200 },\n        { rate: 0.0599, threshold: Infinity }\n    ];\n    break;\n\ncase 'southCarolina':\n    taxBrackets = [\n        { rate: 0.0, threshold: 3200 },\n        { rate: 0.03, threshold: 16040 - 3200 },\n        { rate: 0.065, threshold: Infinity }\n    ];\n    break;\n    \n    case 'southDakota':\n        return 0;\n        break;\n        \n    case 'tennessee':\n        return 0;\n        break;\n        \n    case 'texas':\n        return 0;\n        break;\n        \n    case 'utah':\n        return stateTaxableIncome*0.0485;\n        break;\n        \n    case 'vermont':\n    if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n        taxBrackets = [\n            { rate: 0.0335, threshold: 42150 },\n            { rate: 0.066, threshold: 102200 - 42150 },\n            { rate: 0.076, threshold: 213150 - 102200 },\n            { rate: 0.0875, threshold: Infinity }\n        ];\n    } else {\n        taxBrackets = [\n            { rate: 0.0335, threshold: 70450 },\n            { rate: 0.066, threshold: 170300 - 70450 },\n            { rate: 0.076, threshold: 259500 - 170300 },\n            { rate: 0.0875, threshold: Infinity }\n        ];\n    }\n    break;\n\ncase 'virginia':\n    taxBrackets = [\n        { rate: 0.02, threshold: 3000 },\n        { rate: 0.03, threshold: 5000 - 3000 },\n        { rate: 0.05, threshold: 17000 - 5000 },\n        { rate: 0.0575, threshold: Infinity }\n    ];\n    break;\n\n        \n    case 'washington':\n        return 0;\n        break;\n        \n        case 'westVirginia':\n    taxBrackets = [\n        { rate: 0.03, threshold: 10000 },\n        { rate: 0.04, threshold: 25000 - 10000 },\n        { rate: 0.045, threshold: 40000 - 25000 },\n        { rate: 0.06, threshold: 60000 - 40000 },\n        { rate: 0.065, threshold: Infinity }\n    ];\n    break;\n\ncase 'wisconsin':\n    if (filingStatus === 'single' || filingStatus === 'marriedSeparately') {\n        taxBrackets = [\n            { rate: 0.0354, threshold: 13810 },\n            { rate: 0.0465, threshold: 27630 - 13810 },\n            { rate: 0.053, threshold: 304170 - 27630 },\n            { rate: 0.0765, threshold: Infinity }\n        ];\n    } else {\n        taxBrackets = [\n            { rate: 0.0354, threshold: 18420 },\n            { rate: 0.0465, threshold: 36840 - 18420 },\n            { rate: 0.053, threshold: 405550 - 36840 },\n            { rate: 0.0765, threshold: Infinity }\n        ];\n    }\n    break;\n\n\n    case 'wyoming':\n    return 0;\n    break;\n\n\n    case 'dc':\n    taxBrackets = [\n        { rate: 0.04, threshold: 10000 },\n        { rate: 0.06, threshold: 40000 - 10000 },\n        { rate: 0.065, threshold: 60000 - 40000 },\n        { rate: 0.085, threshold: 250000 - 60000 },\n        { rate: 0.0925, threshold: 500000 - 250000 },\n        { rate: 0.0975, threshold: 1000000 - 500000 },\n        { rate: 0.1075, threshold: Infinity }\n    ];\n    break;\n\n\n        default:\n            \/\/ Default tax brackets and credit\n            taxBrackets = [{ rate: 0, threshold: Infinity }];\n            taxCredit = 0;\n    }\n\n    \/\/ Calculate state tax\n\n    let remainingIncome = stateTaxableIncome;\n\n    for (let bracket of taxBrackets) {\n        if (remainingIncome <= 0) {\n            break;\n        }\n        let taxableAmountInBracket = Math.min(remainingIncome, bracket.threshold);\n        stateTax += taxableAmountInBracket * bracket.rate;\n        remainingIncome -= taxableAmountInBracket;\n    }\n\n    \/\/ Subtract tax credit\n    \n  \n    stateTax -= taxCredit;\n\nreturn stateTax;\n\n    return stateTax;\n}\n\n\n\n\n\n\n\n\n   \/\/ Function to calculate and display total deductions, federal taxable income, and total federal tax\n    function calculateResults() {\n        let filingStatus = document.getElementById('filingStatus').value;\n        let totalFederalTaxDeduction = calculateFederalStandardDeduction(filingStatus);\n        let income = parseFloat(document.getElementById('income').value);\n        let federalTaxableIncome = Math.max(income - totalFederalTaxDeduction, 0);\n        let totalFederalTax = calculateTotalFederalTax(filingStatus, federalTaxableIncome);\n        \n       \n    \n    \/\/ Calculate state standard deduction, state personal exemption and state taxable income\n    let state = document.getElementById('state').value.toLowerCase(); \/\/ Get state value\n    let stateStandardDeduction = calculateStateStandardDeduction(state, filingStatus);\n    let statePersonalExemption = calculateStatePersonalExemption(state, filingStatus);\n    let stateTaxableIncome = Math.max(income - stateStandardDeduction - statePersonalExemption, 0);\n       \/\/ Calculate state tax based on state taxable income\n    let stateTax = calculateStateTax(state, filingStatus, stateTaxableIncome);\n    \n    let totalincometax=stateTax+totalFederalTax;\n    let netincome=income-totalincometax;\n    \n     let oweOrRefund= parseFloat(document.getElementById('taxesWithheld').value).toFixed(0) - (totalFederalTax + stateTax);\n       \n        \n        console.log(filingStatus);\n        console.log(document.getElementById('state').value);\n         console.log(income);\n        console.log(totalFederalTaxDeduction);\n        console.log(federalTaxableIncome);\n        console.log(\"Federal tax\" + totalFederalTax);\n         console.log(\"state taxable income\" + stateTaxableIncome);\n        console.log(\"state tax \" + stateTax);\n        \n\n        \/\/ document.getElementById('totalDeductions').innerText = totalFederalTaxDeduction.toFixed(2);\n        \/\/ document.getElementById('federalTaxableIncome').innerText = federalTaxableIncome.toFixed(2);\n        \/\/ document.getElementById('totalFederalTax').innerText = totalFederalTax.toFixed(2);\n        document.getElementById('totalincome').innerText = income.toFixed(0);\n        document.getElementById('totaltaxeswithheld').innerText = parseFloat(document.getElementById('taxesWithheld').value).toFixed(0);\n        document.getElementById('federalincometaxes').innerText = totalFederalTax.toFixed(0);\n        document.getElementById('statename').innerText = state;\n            document.getElementById('stateincometaxes').innerText = stateTax.toFixed(0);\n            document.getElementById('totalincometax').innerText = totalincometax.toFixed(0);\n            \n            if(oweOrRefund>=0)\n            {\n                document.getElementById('weestimateyouwill').innerText=\"We estimate you can get a refund of\";\n            }\n            else\n            {\n                document.getElementById('weestimateyouwill').innerText=\"We estimate you owe\";\n            }\n            \n        document.getElementById('oweorrefund').innerText=Math.abs(oweOrRefund).toFixed(0);\n        \n      \n  myChart.data.datasets[0].data[0] = netincome; \n  myChart.data.datasets[0].data[1] = totalincometax; \nmyChart.update(); \n\n\n    }\n    \n    \n    \n      \n        \/\/Creating Chart\n        let myChart;\n        let ctx = document.getElementById('tax-chart');\n          \n    myChart = new Chart(ctx, {\n    type: 'doughnut',\n    data: {\n      labels: ['Net income', 'Income tax'],\n      datasets: [{\n        label: '$',\n        data: [0, 0],\n        backgroundColor: [\n      '#53DAA0',\n      '#FABC42'\n    ]\n\n      }]\n    },\n   \n  });\n    \n    \n    \n\n    \n     \/\/ Event listener for form submission\n    document.addEventListener('DOMContentLoaded', function () {\n        document.getElementById('taxForm').addEventListener('submit', function (event) {\n            event.preventDefault(); \/\/ Prevent form submission\n            calculateResults(); \/\/ Calculate and display results\n            \n             document.getElementById('taxcalculationform').style.display = 'none';\n      document.getElementById('taxcalculationresults').style.display = 'block';\n        });\n    });\n    \n    \/\/Clicking on Calculate Again button hides results and shows calculator again\n    \n    document.getElementById('calculateagain').addEventListener('click', function() {\n      document.getElementById('taxcalculationform').style.display = 'block';\n      document.getElementById('taxcalculationresults').style.display = 'none';\n      \n     \n    \n    });\n    \n    \n    \n    \n  <\/script>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d603d19 elementor-widget elementor-widget-text-editor\" data-id=\"d603d19\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\tDisclaimer: The results generated by this tax calculator are estimates and for informational purposes only. Your actual tax obligation may vary due to changes in tax laws, deductions, credits, or other factors not considered in this calculation.\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Income Tax Calculator for 2023-2024 Get a quick and accurate estimate of your federal and state tax refund in seconds for FREE! Tax Form &#xf107; Filing Status* SingleMarried filing jointlyMarried filing separatelyHead of HouseholdQualified Widower &#xf107; State* AlabamaAlaskaArizonaArkansasCaliforniaColoradoConnecticutDelawareFloridaGeorgiaHawaiiIdahoIllinoisIndianaIowaKansasKentuckyLouisianaMaineMarylandMassachusettsMichiganMinnesotaMississippiMissouriMontanaNebraskaNevadaNew HampshireNew JerseyNew MexicoNew YorkNorth CarolinaNorth DakotaOhioOklahomaOregonPennsylvaniaRhode IslandSouth CarolinaSouth DakotaTennesseeTexasUtahVermontVirginiaWashingtonWest VirginiaWisconsinWyomingDistrict of Columbia Income* Taxes Withheld (Federal or [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-212341","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/trybeem.com\/blog\/wp-json\/wp\/v2\/pages\/212341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trybeem.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/trybeem.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/trybeem.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/trybeem.com\/blog\/wp-json\/wp\/v2\/comments?post=212341"}],"version-history":[{"count":0,"href":"https:\/\/trybeem.com\/blog\/wp-json\/wp\/v2\/pages\/212341\/revisions"}],"wp:attachment":[{"href":"https:\/\/trybeem.com\/blog\/wp-json\/wp\/v2\/media?parent=212341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}