{"id":3097,"date":"2021-08-25T12:53:48","date_gmt":"2021-08-25T11:53:48","guid":{"rendered":"https:\/\/heybaby4d.co.uk\/temp\/?page_id=3097"},"modified":"2022-11-10T12:36:20","modified_gmt":"2022-11-10T12:36:20","slug":"ga-calculator","status":"publish","type":"page","link":"https:\/\/heybaby4d.co.uk\/southend\/home\/extras\/ga-calculator\/","title":{"rendered":"GA CALCULATOR"},"content":{"rendered":"\n[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.9.10&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; locked=&#8221;off&#8221; custom_padding=&#8221;2px|||||&#8221;][et_pb_row _builder_version=&#8221;4.9.10&#8243; _module_preset=&#8221;default&#8221; width=&#8221;68%&#8221; max_width=&#8221;100%&#8221; module_alignment=&#8221;center&#8221; global_module=&#8221;3219&#8243; saved_tabs=&#8221;all&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.9.10&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_code _builder_version=&#8221;4.9.10&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<script src=\"https:\/\/temp.heybaby4d.co.uk\/wp-content\/uploads\/moment.min.js\"><\/script><!-- [et_pb_line_break_holder] --><script><!-- [et_pb_line_break_holder] -->var calcValue;<!-- [et_pb_line_break_holder] -->function calcMethod (){<!-- [et_pb_line_break_holder] --> calcValue = document.getElementById(\"calc_method\").value;<!-- [et_pb_line_break_holder] --> if (calcValue == 1){<!-- [et_pb_line_break_holder] --> document.getElementById(\"calc_method_output\").innerHTML = \"your last menstrual period\";<!-- [et_pb_line_break_holder] --> } else if (calcValue == 2) {<!-- [et_pb_line_break_holder] --> document.getElementById(\"calc_method_output\").innerHTML = \"your expected due date\";<!-- [et_pb_line_break_holder] --> } else {}<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --> var selectedDate = new Date();<!-- [et_pb_line_break_holder] --> var gToday = new Date();<!-- [et_pb_line_break_holder] -->function calcGaDate (){<!-- [et_pb_line_break_holder] -->\tvar tDay = gToday.getDate(); var tMonth = gToday.getMonth();<!-- [et_pb_line_break_holder] --> var tYear = gToday.getFullYear();<!-- [et_pb_line_break_holder] -->\tselectedDate = document.getElementById(\"calc_date\").value;<!-- [et_pb_line_break_holder] -->\tselectedDate = selectedDate.split(\"-\");<!-- [et_pb_line_break_holder] -->\tvar gDay = selectedDate[2];<!-- [et_pb_line_break_holder] --> var gMonth = selectedDate[1] - 1;<!-- [et_pb_line_break_holder] --> var gYear = selectedDate[0];<!-- [et_pb_line_break_holder] --> if (calcValue == 1){<!-- [et_pb_line_break_holder] -->\t\tvar a = moment([tYear, tMonth, tDay]);<!-- [et_pb_line_break_holder] -->\t\tvar b = moment([gYear, gMonth, gDay]);<!-- [et_pb_line_break_holder] -->\t\tvar gDiff = a.diff(b, 'week'); \/\/ 1<!-- [et_pb_line_break_holder] -->\t\tdocument.getElementById(\"ga_result\").value = gDiff;<!-- [et_pb_line_break_holder] -->\t\tdocument.getElementById(\"results_no\").innerHTML = gDiff;<!-- [et_pb_line_break_holder] -->\t\tdocument.getElementById(\"results_desc\").innerHTML = gDiff;<!-- [et_pb_line_break_holder] --> } else if (calcValue == 2) {<!-- [et_pb_line_break_holder] -->\t\tvar a = moment([tYear, tMonth, tDay]);<!-- [et_pb_line_break_holder] -->\t\tvar b = moment([gYear, gMonth, gDay]);<!-- [et_pb_line_break_holder] -->\t\tvar gDiff = b.diff(a, 'week'); \/\/ 1<!-- [et_pb_line_break_holder] -->\t\tdocument.getElementById(\"ga_result\").value = 40 - gDiff;<!-- [et_pb_line_break_holder] -->\t\tdocument.getElementById(\"results_no\").innerHTML = 40 - gDiff;<!-- [et_pb_line_break_holder] -->\t\tdocument.getElementById(\"results_desc\").innerHTML = 40 - gDiff;<!-- [et_pb_line_break_holder] -->\t\tvar gdifResult = 40 - gDiff<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><\/script>[\/et_pb_code][et_pb_text _builder_version=&#8221;4.9.10&#8243; _module_preset=&#8221;default&#8221; header_2_text_color=&#8221;#737373&#8243; header_3_text_align=&#8221;center&#8221; header_3_text_color=&#8221;#737373&#8243; global_colors_info=&#8221;{}&#8221;]<h3>Calculate how many weeks pregnant you are:<\/h3>[\/et_pb_text][et_pb_code admin_label=&#8221;Calculation Type&#8221; _builder_version=&#8221;4.9.10&#8243; _module_preset=&#8221;default&#8221; border_width_all=&#8221;2px&#8221; border_color_all=&#8221;#EE75AB&#8221; global_colors_info=&#8221;{}&#8221;]<select id=\"calc_method\" data-calendar-id=\"0\" name=\"calc_method\" onchange=\"calcMethod()\" style=\"width:100%;padding:20px;\"><!-- [et_pb_line_break_holder] --><option value=\"\">Choose&#8230;<\/option><!-- [et_pb_line_break_holder] --><option value=\"1\">Last Menstrual Period<\/option><!-- [et_pb_line_break_holder] --><option value=\"2\">Expected Due Date<\/option><!-- [et_pb_line_break_holder] --><\/select>[\/et_pb_code][et_pb_code admin_label=&#8221;Date Picker&#8221; _builder_version=&#8221;4.9.10&#8243; _module_preset=&#8221;default&#8221; border_color_all=&#8221;#EE75AB&#8221; global_colors_info=&#8221;{}&#8221;]<pee>Please select <span id=\"calc_method_output\">output<\/span><\/pee><!-- [et_pb_line_break_holder] --><input id=\"calc_date\" data-calendar-id=\"0\" type=\"date\" name=\"calc_date\" value=\"\" style=\"width:100%; padding:20px;\" onchange=\"calcGaDate()\">[\/et_pb_code][et_pb_text _builder_version=&#8221;4.9.10&#8243; _module_preset=&#8221;default&#8221; text_text_color=&#8221;#FFFFFF&#8221; global_colors_info=&#8221;{}&#8221;]<span id=\"results_no\">?<\/span>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.9.10&#8243; _module_preset=&#8221;default&#8221; header_3_text_align=&#8221;center&#8221; header_3_font_size=&#8221;32px&#8221; global_colors_info=&#8221;{}&#8221;]<h3>You are <span id=\"results_desc\" style=\"color: #EE75AB;\">?<\/span> weeks pregnant<\/h3>[\/et_pb_text][et_pb_code admin_label=&#8221;Hidden&#8221; _builder_version=&#8221;4.9.10&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<input id=\"ga_result\" data-calendar-id=\"0\" type=\"hidden\" name=\"ga_result\" value=\"\" class=\"large textfield\" style=\"width:48%; height:50px;float:right;\">[\/et_pb_code][\/et_pb_column][\/et_pb_row][\/et_pb_section]\n","protected":false},"excerpt":{"rendered":"<p>Calculate how many weeks pregnant you are:?You are ? weeks pregnant<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":3227,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-3097","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>GA CALCULATOR | Hey Baby 4D Southend<\/title>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GA CALCULATOR | Hey Baby 4D Southend\" \/>\n<meta property=\"og:description\" content=\"Calculate how many weeks pregnant you are:?You are ? weeks pregnant\" \/>\n<meta property=\"og:url\" content=\"https:\/\/heybaby4d.co.uk\/southend\/home\/extras\/ga-calculator\/\" \/>\n<meta property=\"og:site_name\" content=\"Hey Baby 4D Southend\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/heybaby4dsouthend\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-10T12:36:20+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/heybaby4d.co.uk\\\/southend\\\/home\\\/extras\\\/ga-calculator\\\/\",\"url\":\"https:\\\/\\\/heybaby4d.co.uk\\\/southend\\\/home\\\/extras\\\/ga-calculator\\\/\",\"name\":\"GA CALCULATOR | Hey Baby 4D Southend\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/heybaby4d.co.uk\\\/southend\\\/#website\"},\"datePublished\":\"2021-08-25T11:53:48+00:00\",\"dateModified\":\"2022-11-10T12:36:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/heybaby4d.co.uk\\\/southend\\\/home\\\/extras\\\/ga-calculator\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/heybaby4d.co.uk\\\/southend\\\/home\\\/extras\\\/ga-calculator\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/heybaby4d.co.uk\\\/southend\\\/home\\\/extras\\\/ga-calculator\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/heybaby4d.co.uk\\\/southend\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"4. Extras\",\"item\":\"https:\\\/\\\/heybaby4d.co.uk\\\/southend\\\/home\\\/extras\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"GA CALCULATOR\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/heybaby4d.co.uk\\\/southend\\\/#website\",\"url\":\"https:\\\/\\\/heybaby4d.co.uk\\\/southend\\\/\",\"name\":\"Hey Baby 4D Southend\",\"description\":\"Hey Baby 4D Ultrasound Clinic in Southend \",\"publisher\":{\"@id\":\"https:\\\/\\\/heybaby4d.co.uk\\\/southend\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/heybaby4d.co.uk\\\/southend\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/heybaby4d.co.uk\\\/southend\\\/#organization\",\"name\":\"Hey Baby 4D Southend\",\"url\":\"https:\\\/\\\/heybaby4d.co.uk\\\/southend\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/heybaby4d.co.uk\\\/southend\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/heybaby4d.co.uk\\\/southend\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/Southend.png?fit=1500%2C800&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/heybaby4d.co.uk\\\/southend\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/Southend.png?fit=1500%2C800&ssl=1\",\"width\":1500,\"height\":800,\"caption\":\"Hey Baby 4D Southend\"},\"image\":{\"@id\":\"https:\\\/\\\/heybaby4d.co.uk\\\/southend\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/heybaby4dsouthend\",\"https:\\\/\\\/www.instagram.com\\\/heybaby4dsouthend\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GA CALCULATOR | Hey Baby 4D Southend","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_GB","og_type":"article","og_title":"GA CALCULATOR | Hey Baby 4D Southend","og_description":"Calculate how many weeks pregnant you are:?You are ? weeks pregnant","og_url":"https:\/\/heybaby4d.co.uk\/southend\/home\/extras\/ga-calculator\/","og_site_name":"Hey Baby 4D Southend","article_publisher":"https:\/\/www.facebook.com\/heybaby4dsouthend","article_modified_time":"2022-11-10T12:36:20+00:00","twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/heybaby4d.co.uk\/southend\/home\/extras\/ga-calculator\/","url":"https:\/\/heybaby4d.co.uk\/southend\/home\/extras\/ga-calculator\/","name":"GA CALCULATOR | Hey Baby 4D Southend","isPartOf":{"@id":"https:\/\/heybaby4d.co.uk\/southend\/#website"},"datePublished":"2021-08-25T11:53:48+00:00","dateModified":"2022-11-10T12:36:20+00:00","breadcrumb":{"@id":"https:\/\/heybaby4d.co.uk\/southend\/home\/extras\/ga-calculator\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/heybaby4d.co.uk\/southend\/home\/extras\/ga-calculator\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/heybaby4d.co.uk\/southend\/home\/extras\/ga-calculator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/heybaby4d.co.uk\/southend\/"},{"@type":"ListItem","position":2,"name":"4. Extras","item":"https:\/\/heybaby4d.co.uk\/southend\/home\/extras\/"},{"@type":"ListItem","position":3,"name":"GA CALCULATOR"}]},{"@type":"WebSite","@id":"https:\/\/heybaby4d.co.uk\/southend\/#website","url":"https:\/\/heybaby4d.co.uk\/southend\/","name":"Hey Baby 4D Southend","description":"Hey Baby 4D Ultrasound Clinic in Southend ","publisher":{"@id":"https:\/\/heybaby4d.co.uk\/southend\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/heybaby4d.co.uk\/southend\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/heybaby4d.co.uk\/southend\/#organization","name":"Hey Baby 4D Southend","url":"https:\/\/heybaby4d.co.uk\/southend\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/heybaby4d.co.uk\/southend\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/heybaby4d.co.uk\/southend\/wp-content\/uploads\/2022\/02\/Southend.png?fit=1500%2C800&ssl=1","contentUrl":"https:\/\/i0.wp.com\/heybaby4d.co.uk\/southend\/wp-content\/uploads\/2022\/02\/Southend.png?fit=1500%2C800&ssl=1","width":1500,"height":800,"caption":"Hey Baby 4D Southend"},"image":{"@id":"https:\/\/heybaby4d.co.uk\/southend\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/heybaby4dsouthend","https:\/\/www.instagram.com\/heybaby4dsouthend\/"]}]}},"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/heybaby4d.co.uk\/southend\/wp-json\/wp\/v2\/pages\/3097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/heybaby4d.co.uk\/southend\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/heybaby4d.co.uk\/southend\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/heybaby4d.co.uk\/southend\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/heybaby4d.co.uk\/southend\/wp-json\/wp\/v2\/comments?post=3097"}],"version-history":[{"count":1,"href":"https:\/\/heybaby4d.co.uk\/southend\/wp-json\/wp\/v2\/pages\/3097\/revisions"}],"predecessor-version":[{"id":4573,"href":"https:\/\/heybaby4d.co.uk\/southend\/wp-json\/wp\/v2\/pages\/3097\/revisions\/4573"}],"up":[{"embeddable":true,"href":"https:\/\/heybaby4d.co.uk\/southend\/wp-json\/wp\/v2\/pages\/3227"}],"wp:attachment":[{"href":"https:\/\/heybaby4d.co.uk\/southend\/wp-json\/wp\/v2\/media?parent=3097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}