【婚姻費用・養育費計算パラメータ】
夫(父)  年収: 万円(サラリーマン自営業)0~14歳の子供: 15歳以上の子供:
妻(母)  年収: 万円(サラリーマン自営業)0~14歳の子供: 15歳以上の子供:
(婚姻費用・養育費の算定に関する詳しい説明は『損する結婚 儲かる離婚』を参照してください。)
【計算結果】(βバージョンでまだ開発中です。)
(婚姻中)妻が夫に支払う婚姻費用は約 7.9 万円/月
(離婚後)父が母に支払う養育費は約 11.9 万円/月

【途中計算式(デバッグ)】
--- all parameters ---
husband_income = 2000
wife_income = 5000
husband_worktype = independent
wife_worktype = independent
husband_kids_under15 = 0
husband_kids_over15 = 0
wife_kids_under15 = 2
wife_kids_over15 = 0
--- base-income calcuation ---
husband_income = 2000
husband_worktype = independent
a = 0.466
base = 931
wife_income = 5000
wife_worktype = independent
a = 0.45
base = 2250
--- kompi calculation ---
w_k(husband) = 0.323
w_k(wife) = 0.677
base_total = 3181
kompi(husband, 1yr) = 95
kompi(wife, 1yr) = -95
kompi(husband, 1m) = 7.9
kompi(wife, 1m) = -7.9
--- yoikuhi calculation ---
w_y(husband) = 0.524
w_y(wife) = 0.0
yoiku_hyp(husband, 1yr) = -487
yoiku_hyp(wife, 1yr) = 0
yoiku(husband, 1yr) = -142
yoiku(wife, 1yr) = 0
yoiku_net(husband, 1yr) = -142
yoiku_net(husband, 1m) =-11.9