public function calc_married()
 {
     Hasher::checkHash();
     $hash = Hasher::getHash();
     $tgl = addslashes($_POST['tgl']);
     $bln = addslashes($_POST['bln']);
     $thn = addslashes($_POST['th']);
     $gen = addslashes($_POST['gen']);
     $jam = addslashes($_POST['jam']);
     $arr = MyBaziCalc::calc($jam, $tgl, $bln, $thn, $gen);
     $unsur = MyBaziCalc::getArrUnsur();
     $pillars = $arr['pillars'];
     //skip clash and combi
     $tengod = Tengod::calc($pillars, $arr, $unsur);
     //$hasil_type = BaziPembacaan::bacaTipe($pillars,$arr, $unsur,$tengod);
     //$unsur_dibutuhkan = BaziPembacaan::unsurDibutuhkan($pillars,$arr, $unsur,$tengod,$hasil_type);
     $json = BaziQuiz::hitungJodoh($arr, $tengod, $unsur, $pillars);
     //pr($json);
     $texttam = "";
     $arrp = $json['picked_age'];
     $caranya = $json['caranya'];
     //pr($arrp);
     //pr($_POST);
     if (count($arrp) > 1) {
         $dipakai = $arrp[0];
         $more = $arrp[0] . " or " . $arrp[1];
     } else {
         $dipakai = $arrp[0];
         $more = $arrp[0];
     }
     if (isset($caranya[$dipakai])) {
         $texttam = " You both were intoduced either by friend, collague or family";
     }
     $texttam = "";
     $return['picked'] = 'Most likely you will get married<br>at the age ' . $dipakai;
     $return['text'] = "These are the age timeframes that you will likely get married<br><b>" . $more . "</b>";
     $return['base'] = base64_encode($dipakai);
     //pr($json);
     echo json_encode($return);
     die;
     //echo "30";
     //exit();
 }