{"id":189,"date":"2024-08-28T19:58:23","date_gmt":"2024-08-28T19:58:23","guid":{"rendered":"https:\/\/daywork.nl\/?page_id=189"},"modified":"2024-12-11T13:09:01","modified_gmt":"2024-12-11T13:09:01","slug":"rekentool-voorlopige-hechtenis","status":"publish","type":"page","link":"https:\/\/daywork.nl\/index.php\/rekentool-voorlopige-hechtenis\/","title":{"rendered":"Rekentool voorlopige hechtenis"},"content":{"rendered":"<div data-colibri-id=\"2-c1\" class=\"style-359 style-local-2-c1 position-relative\">\n  <!---->\n<\/div>\n\n\n<!DOCTYPE html>\n<html lang=\"nl\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Rekentool Voorlopige Hechtenis<\/title>\n    <style>\n        body {\n            background-color: #f0f0f5;\n            font-family: Arial, sans-serif;\n            margin: 0;\n            padding: 10px 0;\n            display: flex;\n            flex-direction: column;\n            justify-content: flex-start;\n            align-items: center;\n        }\n        .container {\n            background-color: #fff;\n            color: #333;\n            border-radius: 10px;\n            box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);\n            padding: 20px;\n            max-width: 800px;\n            text-align: center;\n            font-family: Arial, sans-serif;\n            margin-bottom: 10px;\n        }\n        h2 {\n            font-size: 24px;\n            margin-bottom: 10px;\n            color: #007bff;\n        }\n        label {\n            font-size: 16px;\n            margin-bottom: 10px;\n            display: block;\n            color: #555;\n        }\n        input {\n            background-color: #333;\n            color: white;\n            border: none;\n            padding: 10px;\n            border-radius: 5px;\n            font-size: 16px;\n            margin-bottom: 10px;\n            width: 100%;\n            box-sizing: border-box;\n        }\n        button {\n            background-color: #007bff;\n            color: white;\n            padding: 10px 20px;\n            border: none;\n            border-radius: 5px;\n            font-size: 16px;\n            cursor: pointer;\n            width: 100%;\n        }\n        button:hover {\n            background-color: #0056b3;\n        }\n        .result {\n            margin-top: 15px;\n            font-size: 18px;\n            font-weight: bold;\n            color: #007bff;\n        }\n        .explanation {\n            margin-top: 10px;\n            font-size: 14px;\n            color: #555;\n            text-align: left;\n        }\n        .conditions {\n            margin-top: 20px;\n            font-size: 14px;\n            color: #555;\n            max-width: 600px;\n        }\n        .conditions p {\n            margin-bottom: 10px;\n        }\n    <\/style>\n<\/head>\n<body>\n\n<h2>Rekentool Voorlopige Hechtenis<\/h2>\n\n<div class=\"container\">\n    <label for=\"startDate\">Eerste dag van inverzekeringstelling:<\/label>\n    <input type=\"date\" id=\"startDate\">\n\n    <label for=\"endDate\">Einddatum (schorsing, in vrijheid gesteld of dag zitting):<\/label>\n    <input type=\"date\" id=\"endDate\">\n\n    <button id=\"calculateButton\">Bereken<\/button>\n    <div id=\"result\" class=\"result\">Resultaat hier<\/div>\n    <div id=\"explanation\" class=\"explanation\"><\/div>\n<\/div>\n\n<div class=\"conditions\">\n    <h3>Randvoorwaarden voor de Berekening:<\/h3>\n    <p><strong>a.<\/strong> Indien alleen sprake is van inverzekeringstelling: de eerste en de laatste dag van inverzekeringstelling gelden als een volle dag. Indien het voorarrest beperkt is gebleven tot enkele uren inverzekeringstelling geldt dit als een volle dag.<\/p>\n    <p><strong>b.<\/strong> Indien sprake is van voorlopige hechtenis in aansluiting op inverzekeringstelling: de eerste dag van inverzekeringstelling geldt als een volle dag, de laatste dag van inverzekeringstelling blijft buiten beschouwing (dit om dubbeltelling met de eerste dag van de voorlopige hechtenis te voorkomen &#8211; de ratio van art. 27, tweede lid, Sr). De laatste dag van de voorlopige hechtenis geldt als een volle dag.<\/p>\n    <p><strong>c.<\/strong> Indien uitsluitend voorlopige hechtenis is toegepast: de eerste en de laatste dag van de voorlopige hechtenis gelden als een volle dag.<\/p>\n<\/div>\n\n<script>\ndocument.getElementById('calculateButton').addEventListener('click', function() {\n    var startDate = new Date(document.getElementById('startDate').value);\n    var endDate = new Date(document.getElementById('endDate').value);\n\n    if (isNaN(startDate.getTime()) || isNaN(endDate.getTime()) || startDate > endDate) {\n        document.getElementById('result').innerText = 'Voer geldige data in.';\n        document.getElementById('explanation').innerText = '';\n        return;\n    }\n\n    var timeDifference = endDate.getTime() - startDate.getTime();\n    var days = Math.ceil(timeDifference \/ (1000 * 3600 * 24)) + 1; \/\/ Inclusief de eerste dag\n\n    var result = days;\n    \n\n    document.getElementById('result').innerText = 'Aftrekbare dagen: ' + result + ' dag(en).';\n\n});\n<\/script>\n\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>Rekentool Voorlopige Hechtenis Rekentool Voorlopige Hechtenis Eerste dag van inverzekeringstelling: Einddatum (schorsing, in vrijheid gesteld of dag zitting): Bereken Resultaat hier Randvoorwaarden voor de Berekening: a. Indien alleen sprake is van inverzekeringstelling: de eerste en de laatste dag van inverzekeringstelling gelden als een volle dag. Indien het voorarrest beperkt is gebleven tot enkele uren inverzekeringstelling [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"page-templates\/full-width-page.php","meta":{"footnotes":""},"class_list":["post-189","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/daywork.nl\/index.php\/wp-json\/wp\/v2\/pages\/189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daywork.nl\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/daywork.nl\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/daywork.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daywork.nl\/index.php\/wp-json\/wp\/v2\/comments?post=189"}],"version-history":[{"count":9,"href":"https:\/\/daywork.nl\/index.php\/wp-json\/wp\/v2\/pages\/189\/revisions"}],"predecessor-version":[{"id":378,"href":"https:\/\/daywork.nl\/index.php\/wp-json\/wp\/v2\/pages\/189\/revisions\/378"}],"wp:attachment":[{"href":"https:\/\/daywork.nl\/index.php\/wp-json\/wp\/v2\/media?parent=189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}