貴社の年間売上高と従業員数を入力してください。
$getugaku = $kessan = 0; if( isset($_POST['form1_A']) && $_POST['form1_B']){ $_POST['form1_A'] = str_replace(',','',$_POST['form1_A']); $_POST['form1_A'] = mb_convert_kana($_POST['form1_A'], "n", "EUC-JP"); $_POST['form1_B'] = mb_convert_kana($_POST['form1_B'], "n", "EUC-JP"); if(is_numeric($_POST['form1_A']) && is_numeric($_POST['form1_B'])){ $form1_A = ($_POST['form1_A']<1000)?1:(($_POST['form1_A']<3000)?2:3); $form1_B = ($_POST['form1_B']<4)?1:$_POST['form1_B']; if($_POST['form1_B']>3) $form1_B = ($_POST['form1_B']==4)?2:3; //ランク算出 $f1_r = ($form1_A>$form1_B)?$form1_A:$form1_B; $getugaku = ($f1_r=='1')?8500:(($f1_r=='2')?11050:12750); $kessan = ($f1_r=='1')?85000:(($f1_r=='2')?110500:127500); }else{ ?>正しい数値を入力してください。
} ?> } ?>月額顧問報酬 | 0 円 |
---|---|
決算申告報酬 | 0 円 |
年間合計 | 0 円 |
貴社の年間売上高と年間売上総利益を入力してください。
$ary1 = array_merge(array(0=>'[選択]'), range(30, 100, 10), range(120, 200, 20), range(225, 300, 25), range(350, 500, 50), range(600, 1000, 100), range(1200, 2000, 200), range(2500, 4000, 500), array(5000,7000,10000,15000)); $ary2 = array(0=>'[選択]'); foreach($ary1 as $k => $v){ if($k) $ary2[$k] = $v * 0.4; } $f2_price = array_merge(array(0=>0), range(28, 68, 2), range(72, 88, 4), range(94, 118, 6), range(126, 150, 8), array(160,180,210,250)); ?> if( isset($_POST['form2_A']) && $_POST['form2_B']){ $form_ary = array($_POST['form2_A'], $_POST['form2_B']); $i = 0; unset($error); foreach($form_ary as $form_val){ $i++; $form_val = str_replace(',','',$form_val); $form_val = mb_convert_kana($form_val, "n", "EUC-JP"); if(!is_numeric($form_val)){ $error = 1; break; }else{ $form_val = round($form_val/100); $ary = ($i==1)?$ary1:$ary2; foreach($ary as $k => $v){ if($form_val <= $v){ $f_r[$i] = $k; break; } } } } $f2_r1 = $f2_price[$f_r[1]]; $f2_r2 = $f2_price[$f_r[2]]; $f2_p1 = ($f2_r1*1000)*0.85; $f2_p2 = ($f2_r2*1000)*0.85; $f2_r = ($f2_p1+$f2_p2)/2; } ?> if(isset($error)){ ?>正しい数値を入力してください。
} ?>月額顧問報酬 | 0 円 |
---|---|
決算申告報酬 | 0 円 |
消費税申告報酬 | 0 円 |
年間合計 | 0 円 |