{"id":51352,"date":"2021-08-25T11:53:48","date_gmt":"2021-08-25T11:53:48","guid":{"rendered":"https:\/\/heybaby4d.co.uk\/clapham\/ga-calculator\/"},"modified":"2025-01-08T13:53:40","modified_gmt":"2025-01-08T13:53:40","slug":"ga-calculator","status":"publish","type":"page","link":"https:\/\/heybaby4d.co.uk\/clapham\/ga-calculator\/","title":{"rendered":"GA CALCULATOR"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;2px|||||&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; width=&#8221;68%&#8221; max_width=&#8221;100%&#8221; module_alignment=&#8221;center&#8221; saved_tabs=&#8221;all&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_code _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;]<script src=\"https:\/\/heybaby4d.co.uk\/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] -->var tDay = gToday.getDate(); var tMonth = gToday.getMonth();<!-- [et_pb_line_break_holder] --> var tYear = gToday.getFullYear();<!-- [et_pb_line_break_holder] -->selectedDate = document.getElementById(\"calc_date\").value;<!-- [et_pb_line_break_holder] -->selectedDate = selectedDate.split(\"-\");<!-- [et_pb_line_break_holder] -->var 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] -->var a = moment([tYear, tMonth, tDay]);<!-- [et_pb_line_break_holder] -->var b = moment([gYear, gMonth, gDay]);<!-- [et_pb_line_break_holder] -->var gDiff = a.diff(b, 'week'); \/\/ 1<!-- [et_pb_line_break_holder] -->document.getElementById(\"ga_result\").value = gDiff;<!-- [et_pb_line_break_holder] -->document.getElementById(\"results_no\").innerHTML = gDiff;<!-- [et_pb_line_break_holder] -->document.getElementById(\"results_desc\").innerHTML = gDiff;<!-- [et_pb_line_break_holder] --> } else if (calcValue == 2) {<!-- [et_pb_line_break_holder] -->var a = moment([tYear, tMonth, tDay]);<!-- [et_pb_line_break_holder] -->var b = moment([gYear, gMonth, gDay]);<!-- [et_pb_line_break_holder] -->var gDiff = b.diff(a, 'week'); \/\/ 1<!-- [et_pb_line_break_holder] -->document.getElementById(\"ga_result\").value = 40 - gDiff;<!-- [et_pb_line_break_holder] -->document.getElementById(\"results_no\").innerHTML = 40 - gDiff;<!-- [et_pb_line_break_holder] -->document.getElementById(\"results_desc\").innerHTML = 40 - gDiff;<!-- [et_pb_line_break_holder] -->var 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.16&#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;]<\/p>\n<h3>Calculate how many weeks pregnant you are:<\/h3>\n<p>[\/et_pb_text][et_pb_code admin_label=&#8221;Calculation Type&#8221; _builder_version=&#8221;4.16&#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.16&#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.16&#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.16&#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;]<\/p>\n<h3>You are <span id=\"results_desc\" style=\"color: #EE75AB;\">?<\/span> weeks pregnant<\/h3>\n<p>[\/et_pb_text][et_pb_code admin_label=&#8221;Hidden&#8221; _builder_version=&#8221;4.16&#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]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Calculate how many weeks pregnant you are:?You are ? weeks pregnant<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"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-51352","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>How Far Pregnant Am i? Use Our Gestation Calculator<\/title>\n<meta name=\"description\" content=\"Use our free online gestation calculator to determine how far you are in your pregnancy based on your LMP.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/heybaby4d.co.uk\/clapham\/ga-calculator\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How Far Pregnant Am i? Use Our Gestation Calculator\" \/>\n<meta property=\"og:description\" content=\"Use our free online gestation calculator to determine how far you are in your pregnancy based on your LMP.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/heybaby4d.co.uk\/clapham\/ga-calculator\/\" \/>\n<meta property=\"og:site_name\" content=\"Hey Baby 4D Clapham\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-08T13:53:40+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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/heybaby4d.co.uk\\\/clapham\\\/ga-calculator\\\/\",\"url\":\"https:\\\/\\\/heybaby4d.co.uk\\\/clapham\\\/ga-calculator\\\/\",\"name\":\"How Far Pregnant Am i? Use Our Gestation Calculator\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/heybaby4d.co.uk\\\/clapham\\\/#website\"},\"datePublished\":\"2021-08-25T11:53:48+00:00\",\"dateModified\":\"2025-01-08T13:53:40+00:00\",\"description\":\"Use our free online gestation calculator to determine how far you are in your pregnancy based on your LMP.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/heybaby4d.co.uk\\\/clapham\\\/ga-calculator\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/heybaby4d.co.uk\\\/clapham\\\/ga-calculator\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/heybaby4d.co.uk\\\/clapham\\\/ga-calculator\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/heybaby4d.co.uk\\\/clapham\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GA CALCULATOR\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/heybaby4d.co.uk\\\/clapham\\\/#website\",\"url\":\"https:\\\/\\\/heybaby4d.co.uk\\\/clapham\\\/\",\"name\":\"Hey Baby 4D Clapham\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/heybaby4d.co.uk\\\/clapham\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How Far Pregnant Am i? Use Our Gestation Calculator","description":"Use our free online gestation calculator to determine how far you are in your pregnancy based on your LMP.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/heybaby4d.co.uk\/clapham\/ga-calculator\/","og_locale":"en_GB","og_type":"article","og_title":"How Far Pregnant Am i? Use Our Gestation Calculator","og_description":"Use our free online gestation calculator to determine how far you are in your pregnancy based on your LMP.","og_url":"https:\/\/heybaby4d.co.uk\/clapham\/ga-calculator\/","og_site_name":"Hey Baby 4D Clapham","article_modified_time":"2025-01-08T13:53:40+00:00","twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/heybaby4d.co.uk\/clapham\/ga-calculator\/","url":"https:\/\/heybaby4d.co.uk\/clapham\/ga-calculator\/","name":"How Far Pregnant Am i? Use Our Gestation Calculator","isPartOf":{"@id":"https:\/\/heybaby4d.co.uk\/clapham\/#website"},"datePublished":"2021-08-25T11:53:48+00:00","dateModified":"2025-01-08T13:53:40+00:00","description":"Use our free online gestation calculator to determine how far you are in your pregnancy based on your LMP.","breadcrumb":{"@id":"https:\/\/heybaby4d.co.uk\/clapham\/ga-calculator\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/heybaby4d.co.uk\/clapham\/ga-calculator\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/heybaby4d.co.uk\/clapham\/ga-calculator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/heybaby4d.co.uk\/clapham\/"},{"@type":"ListItem","position":2,"name":"GA CALCULATOR"}]},{"@type":"WebSite","@id":"https:\/\/heybaby4d.co.uk\/clapham\/#website","url":"https:\/\/heybaby4d.co.uk\/clapham\/","name":"Hey Baby 4D Clapham","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/heybaby4d.co.uk\/clapham\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"}]}},"_links":{"self":[{"href":"https:\/\/heybaby4d.co.uk\/clapham\/wp-json\/wp\/v2\/pages\/51352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/heybaby4d.co.uk\/clapham\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/heybaby4d.co.uk\/clapham\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/heybaby4d.co.uk\/clapham\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/heybaby4d.co.uk\/clapham\/wp-json\/wp\/v2\/comments?post=51352"}],"version-history":[{"count":1,"href":"https:\/\/heybaby4d.co.uk\/clapham\/wp-json\/wp\/v2\/pages\/51352\/revisions"}],"predecessor-version":[{"id":51807,"href":"https:\/\/heybaby4d.co.uk\/clapham\/wp-json\/wp\/v2\/pages\/51352\/revisions\/51807"}],"wp:attachment":[{"href":"https:\/\/heybaby4d.co.uk\/clapham\/wp-json\/wp\/v2\/media?parent=51352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}