{"id":783,"date":"2018-05-04T15:58:44","date_gmt":"2018-05-04T23:58:44","guid":{"rendered":"http:\/\/www.madpickles.org\/rokjoo\/?p=783"},"modified":"2018-05-04T15:58:44","modified_gmt":"2018-05-04T23:58:44","slug":"crossover-dates","status":"publish","type":"post","link":"https:\/\/www.madpickles.org\/rokjoo\/2018\/05\/04\/crossover-dates\/","title":{"rendered":"Crossover Dates"},"content":{"rendered":"<p>My wife and I recently crossed a round number year anniversary of the date we first met in person. It occurred to me that it was actually more than half my lifetime and (in hindsight) thought that &#8220;crossover date&#8221; might have been another moment in time worth paying attention to.<\/p>\n<p>Below is a quick and dirty form that will calculate the crossover date given a start date e.g. my birth date, and an event date e.g. when I first met my wife. Any textual representation of a date that the <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Reference\/Global_Objects\/Date\" rel=\"noopener\" target=\"_blank\">JavaScript Date Constructor<\/a> recognizes should work e.g. 2018-05-04 for May 4, 2018.<\/p>\n<p><script>\n  function computeCrossoverDate() {\n    let startDate = new Date(document.getElementById(\"startDateString\").value);\n    let eventDate = new Date(document.getElementById(\"eventDateString\").value);\n    let crossoverDate = new Date(eventDate.getTime() + (eventDate - startDate));\n    document.getElementById(\"crossoverDateString\").value = crossoverDate;\n  }\n<\/script><\/p>\n<form style=\"border: dashed; padding: 10px; font-family: verdana;\">\n  Start Date: <input type=\"text\" id=\"startDateString\" size=\"12\"\/> Event Date: <input type=\"text\" id=\"eventDateString\" size=\"12\"\/> <input type=\"button\" onClick=\"computeCrossoverDate();\" value=\"Go!\"\/><br \/>\n  Crossover Date: <input type=\"text\" id=\"crossoverDateString\" size=\"40\"\/><br \/>\n<\/form>\n<p><\/p>\n<p>In my case, the crossover date of meeting my wife was three weeks before this most recent round number year anniversary. According to <a href=\"https:\/\/personal.vanguard.com\/us\/insights\/retirement\/plan-for-a-long-retirement-tool\" rel=\"noopener\" target=\"_blank\">Vanguard<\/a> there&#8217;s an 80%+ chance that I&#8217;ll live long enough to reach the crossover date of my daughter being born i.e. I&#8217;ll have spent more years alive with her than without. Sadly (without some significant advances in veterinary medicine) it will not be possible to reach the crossover date of when we adopted our dog.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My wife and I recently crossed a round number year anniversary of the date we first met in person. It occurred to me that it was actually more than half my lifetime and (in hindsight) thought that &#8220;crossover date&#8221; might have been another moment in time worth paying attention to. Below is a quick and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[4,27,11],"_links":{"self":[{"href":"https:\/\/www.madpickles.org\/rokjoo\/wp-json\/wp\/v2\/posts\/783"}],"collection":[{"href":"https:\/\/www.madpickles.org\/rokjoo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.madpickles.org\/rokjoo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.madpickles.org\/rokjoo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.madpickles.org\/rokjoo\/wp-json\/wp\/v2\/comments?post=783"}],"version-history":[{"count":15,"href":"https:\/\/www.madpickles.org\/rokjoo\/wp-json\/wp\/v2\/posts\/783\/revisions"}],"predecessor-version":[{"id":798,"href":"https:\/\/www.madpickles.org\/rokjoo\/wp-json\/wp\/v2\/posts\/783\/revisions\/798"}],"wp:attachment":[{"href":"https:\/\/www.madpickles.org\/rokjoo\/wp-json\/wp\/v2\/media?parent=783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.madpickles.org\/rokjoo\/wp-json\/wp\/v2\/categories?post=783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.madpickles.org\/rokjoo\/wp-json\/wp\/v2\/tags?post=783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}