{"id":8602,"date":"2024-10-24T16:05:00","date_gmt":"2024-10-24T16:05:00","guid":{"rendered":"https:\/\/nam.extended-developments.com\/?p=8602"},"modified":"2024-11-25T14:56:57","modified_gmt":"2024-11-25T14:56:57","slug":"roas-by-total-revenue","status":"publish","type":"post","link":"https:\/\/nam.extended-developments.com\/nl\/roas-by-total-revenue\/","title":{"rendered":"ROAS"},"content":{"rendered":"<div style=\"max-width: 100%; margin: 0 auto;\">\n  <h3>Enter Your Data Below<\/h3>\n  <form action=\"\">\n    <div style=\"display: flex; flex-direction: column; margin-bottom: 10px;\">\n      <label for=\"revenue\">Revenue:<\/label>\n      <input type=\"number\" id=\"revenue\" name=\"revenue\" step=\"0.01\" required>\n    <\/div>\n\n    <div style=\"display: flex; flex-direction: column; margin-bottom: 10px;\">\n      <label for=\"cost\">Cost:<\/label>\n      <input type=\"number\" id=\"cost\" name=\"cost\" step=\"0.01\" required>\n    <\/div>\n\n    <button type=\"button\" onclick=\"calculateROAS()\">Calculate ROAS<\/button>\n\n    <div style=\"display: flex; flex-direction: column; margin-top: 10px;\">\n      <label for=\"roasDecimal\">ROAS (Decimal):<\/label>\n      <input type=\"text\" id=\"roasDecimal\" readonly>\n    <\/div>\n\n    <div style=\"display: flex; flex-direction: column; margin-top: 10px;\">\n      <label for=\"roasPercentage\">ROAS (Percentage):<\/label>\n      <input type=\"text\" id=\"roasPercentage\" readonly>\n    <\/div>\n  <input type=\"hidden\" name=\"trp-form-language\" value=\"nl\"\/><\/form>\n<\/div>\n\n<style>\n  body {\n    font-family: 'Lato', Arial, sans-serif;\n  }\n\n\n\n  form {\n    border: 1px solid #ccc;\n    padding: 10px;\n    border-radius: 5px;\n  }\n\n  label {\n    font-weight: bold;\n    font-size: 14px;\n    color: #000;\n  }\n\n  button {\n    margin-top: 10px;\n    background-color: #FCC100;\n    color: white;\n    border: none;\n    padding: 8px 16px;\n    text-align: center;\n    text-decoration: none;\n    display: inline-block;\n    font-size: 14px;\n    border-radius: 27px;\n    cursor: pointer;\n    font-family: 'Lato', Arial, sans-serif;\n    font-weight: bold;\n  }\n\n  \/* Custom styles for tablet devices *\/\n  @media (max-width: 768px) {\n    form {\n      max-width: 100%;\n    }\n    label, input, button {\n      font-size: 16px;\n      font-weight: normal;\n    }\n  }\n\n  \/* Custom styles for mobile devices *\/\n  @media (max-width: 480px) {\n    form {\n      max-width: 100%;\n    }\n    label, input, button {\n      font-size: 14px;\n      font-weight: bold;\n    }\n  }\n<\/style>\n<script>\n  function calculateROAS() {\n    const revenue = parseFloat(document.getElementById('revenue').value);\n    const cost = parseFloat(document.getElementById('cost').value);\n\n    if (!isNaN(revenue) && !isNaN(cost) && cost > 0) {\n      const roasDecimal = revenue \/ cost;\n      document.getElementById('roasDecimal').value = roasDecimal.toFixed(2);\n\n      const roasPercentage = (roasDecimal * 100).toFixed(2);\n      document.getElementById('roasPercentage').value = roasPercentage + '%';\n    }\n  }\n<\/script>","protected":false},"excerpt":{"rendered":"<p>Meet de gegenereerde omzet voor elke dollar die aan advertenties is uitgegeven.<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[7],"tags":[],"wf_post_folders":[8],"class_list":["post-8602","post","type-post","status-publish","format-standard","hentry","category-tools"],"acf":[],"_links":{"self":[{"href":"https:\/\/nam.extended-developments.com\/nl\/wp-json\/wp\/v2\/posts\/8602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nam.extended-developments.com\/nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nam.extended-developments.com\/nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nam.extended-developments.com\/nl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nam.extended-developments.com\/nl\/wp-json\/wp\/v2\/comments?post=8602"}],"version-history":[{"count":4,"href":"https:\/\/nam.extended-developments.com\/nl\/wp-json\/wp\/v2\/posts\/8602\/revisions"}],"predecessor-version":[{"id":10921,"href":"https:\/\/nam.extended-developments.com\/nl\/wp-json\/wp\/v2\/posts\/8602\/revisions\/10921"}],"wp:attachment":[{"href":"https:\/\/nam.extended-developments.com\/nl\/wp-json\/wp\/v2\/media?parent=8602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nam.extended-developments.com\/nl\/wp-json\/wp\/v2\/categories?post=8602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nam.extended-developments.com\/nl\/wp-json\/wp\/v2\/tags?post=8602"},{"taxonomy":"wf_post_folders","embeddable":true,"href":"https:\/\/nam.extended-developments.com\/nl\/wp-json\/wp\/v2\/wf_post_folders?post=8602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}