{"id":1728,"date":"2025-02-15T20:09:56","date_gmt":"2025-02-15T20:09:56","guid":{"rendered":"https:\/\/shimmerlane.com\/?page_id=1728"},"modified":"2025-02-15T21:21:55","modified_gmt":"2025-02-15T21:21:55","slug":"sri-lanka-cosmetics-import-exemption-calculator","status":"publish","type":"page","link":"https:\/\/shimmerlane.com\/si\/sri-lanka-cosmetics-import-exemption-calculator\/","title":{"rendered":"Cosmetics Personal Exemption Calculator"},"content":{"rendered":"<!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>Sri Lanka Cosmetics Duty Calculator<\/title>\n    <style>\n        :root {\n            --primary: #FF69B4;\n            --secondary: #FF1493;\n            --background: #f8f9fa;\n            --text: #343a40;\n            --border: #e2e8f0;\n            --radius: 8px;\n        }\n\n        body {\n            font-family: 'Segoe UI', sans-serif;\n            margin: 0;\n            padding: 2rem;\n            background: var(--background);\n        }\n\n        .calculator-container {\n            max-width: 600px;\n            margin: 0 auto;\n            padding: 2rem;\n            background: white;\n            border-radius: var(--radius);\n            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n            border: 2px solid var(--primary);\n        }\n\n        .header {\n            text-align: center;\n            margin-bottom: 2rem;\n        }\n\n        .input-group {\n            margin-bottom: 1.5rem;\n        }\n\n        label {\n            display: block;\n            margin-bottom: 0.5rem;\n            color: var(--primary);\n            font-weight: 500;\n        }\n\n        input {\n            width: 100%;\n            padding: 0.75rem;\n            border: 2px solid var(--border);\n            border-radius: var(--radius);\n            transition: border-color 0.2s ease;\n        }\n\n        input:focus {\n            border-color: var(--primary);\n            outline: none;\n        }\n\n        .results {\n            margin-top: 2rem;\n            padding: 1.5rem;\n            background: var(--background);\n            border-radius: var(--radius);\n        }\n\n        .result-item {\n            display: flex;\n            justify-content: space-between;\n            margin-bottom: 1rem;\n            padding: 0.5rem 0;\n            border-bottom: 1px solid var(--border);\n        }\n\n        .total {\n            font-weight: 700;\n            color: var(--secondary);\n        }\n\n        .disclaimer {\n            margin-top: 1.5rem;\n            font-size: 0.9rem;\n            color: #666;\n            text-align: center;\n        }\n\n        .footer {\n            margin-top: 2rem;\n            text-align: center;\n            color: #666;\n            font-size: 0.9rem;\n        }\n    <\/style>\n<\/head>\n<body>\n    <div class=\"calculator-container\">\n        <div class=\"header\">\n            <h1>Sri Lanka Cosmetics Import Duty Calculator<\/h1>\n            <p>Personal Exemption: $50 USD<\/p>\n        <\/div>\n\n        <div class=\"input-group\">\n            <label>Product Value (USD)<\/label>\n            <input type=\"number\" id=\"productValue\" step=\"0.01\" value=\"4\">\n        <\/div>\n\n        <div class=\"input-group\">\n            <label>Shipping Cost (USD)<\/label>\n            <input type=\"number\" id=\"shippingCost\" step=\"0.01\" value=\"5\">\n        <\/div>\n\n        <div class=\"input-group\">\n            <label>Insurance Cost (USD)<\/label>\n            <input type=\"number\" id=\"insuranceCost\" step=\"0.01\" value=\"3\">\n        <\/div>\n\n        <div class=\"input-group\">\n            <label>USD to LKR Exchange Rate<\/label>\n            <input type=\"number\" id=\"exchangeRate\" step=\"0.01\" value=\"325\">\n        <\/div>\n\n        <div class=\"results\">\n            <div class=\"result-item\">\n                <span>Customs Duty (15%):<\/span>\n                <span id=\"customsDuty\">LKR 0.00<\/span>\n            <\/div>\n            <div class=\"result-item\">\n                <span>VAT (18%):<\/span>\n                <span id=\"vat\">LKR 0.00<\/span>\n            <\/div>\n            <div class=\"result-item\">\n                <span>PAL (7.5%):<\/span>\n                <span id=\"pal\">LKR 0.00<\/span>\n            <\/div>\n            <div class=\"result-item total\">\n                <span>Total Payable:<\/span>\n                <span id=\"totalPayable\">LKR 0.00<\/span>\n            <\/div>\n        <\/div>\n\n        <div class=\"disclaimer\">\n            * Estimates only. Actual duties may vary. Verify with Sri Lanka Customs.\n        <\/div>\n\n        <div class=\"footer\">\n            <p>Copyright \u00a9 2025 Shimmer Lane | Powered by Shimmer Lane<\/p>\n        <\/div>\n    <\/div>\n\n    <script>\n        const config = {\n            customsDutyRate: 0.15,\n            vatRate: 0.18,\n            palRate: 0.075,\n            personalExemptionUSD: 50\n        };\n\n        function calculateDuty() {\n            const productValue = parseFloat(document.getElementById('productValue').value) || 0;\n            const shippingCost = parseFloat(document.getElementById('shippingCost').value) || 0;\n            const insuranceCost = parseFloat(document.getElementById('insuranceCost').value) || 0;\n            const exchangeRate = parseFloat(document.getElementById('exchangeRate').value) || 325;\n\n            \/\/ Calculate total USD values\n            const totalUSD = productValue + shippingCost + insuranceCost;\n            const exemptedUSD = Math.max(totalUSD - config.personalExemptionUSD, 0);\n            \n            \/\/ Convert to LKR\n            const taxableLKR = exemptedUSD * exchangeRate;\n\n            \/\/ Calculate duties\n            const customsDuty = taxableLKR * config.customsDutyRate;\n            const pal = taxableLKR * config.palRate;\n            const vat = (taxableLKR + customsDuty + pal) * config.vatRate;\n            \n            \/\/ Totals\n            const totalTaxLKR = customsDuty + pal + vat;\n            const totalPayableLKR = (totalUSD * exchangeRate) + totalTaxLKR;\n\n            \/\/ Update UI\n            document.getElementById('customsDuty').textContent = `LKR ${customsDuty.toFixed(2)}`;\n            document.getElementById('vat').textContent = `LKR ${vat.toFixed(2)}`;\n            document.getElementById('pal').textContent = `LKR ${pal.toFixed(2)}`;\n            document.getElementById('totalPayable').textContent = `LKR ${totalPayableLKR.toFixed(2)}`;\n        }\n\n        \/\/ Add event listeners\n        document.querySelectorAll('input').forEach(input => {\n            input.addEventListener('input', calculateDuty);\n        });\n\n        \/\/ Initial calculation\n        calculateDuty();\n    <\/script>\n<\/body>\n<\/html>","protected":false},"excerpt":{"rendered":"<p>Sri Lanka Cosmetics Duty Calculator Sri Lanka Cosmetics Import Duty Calculator Personal Exemption: $50 USD Product Value (USD) Shipping Cost [&hellip;]<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_surecart_dashboard_logo_width":"180px","_surecart_dashboard_show_logo":true,"_surecart_dashboard_navigation_orders":true,"_surecart_dashboard_navigation_invoices":true,"_surecart_dashboard_navigation_subscriptions":true,"_surecart_dashboard_navigation_downloads":true,"_surecart_dashboard_navigation_billing":true,"_surecart_dashboard_navigation_account":true,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-1728","page","type-page","status-publish","hentry"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false},"uagb_author_info":{"display_name":"sheny.kt@gmail.com","author_link":"https:\/\/shimmerlane.com\/si\/author\/sheny-ktgmail-com\/"},"uagb_comment_info":0,"uagb_excerpt":"Sri Lanka Cosmetics Duty Calculator Sri Lanka Cosmetics Import Duty Calculator Personal Exemption: $50 USD Product Value (USD) Shipping Cost [&hellip;]","_links":{"self":[{"href":"https:\/\/shimmerlane.com\/si\/wp-json\/wp\/v2\/pages\/1728","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shimmerlane.com\/si\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/shimmerlane.com\/si\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/shimmerlane.com\/si\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shimmerlane.com\/si\/wp-json\/wp\/v2\/comments?post=1728"}],"version-history":[{"count":14,"href":"https:\/\/shimmerlane.com\/si\/wp-json\/wp\/v2\/pages\/1728\/revisions"}],"predecessor-version":[{"id":1745,"href":"https:\/\/shimmerlane.com\/si\/wp-json\/wp\/v2\/pages\/1728\/revisions\/1745"}],"wp:attachment":[{"href":"https:\/\/shimmerlane.com\/si\/wp-json\/wp\/v2\/media?parent=1728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}