function getTotalIncome(who){
    total = 0
    ss = parseFloat($("#"+who+"_ss").val());
    retire = parseFloat($("#"+who+"_retirement").val());
    salary = parseFloat($("#"+who+"_salary").val());
    divid = parseFloat($("#"+who+"_dividends").val());
    ssi = parseFloat($("#"+who+"_ssi").val());
    other = parseFloat($("#"+who+"_other").val());
    if(ss) total += ss;
    if(retire) total += retire;
    if(salary) total += salary;
    if(divid) total += divid;
    if(ssi) total += ssi;
    if(other) total += other;
    $("#"+who+"_total").val(total);
}

function getAssets(){
    total = 0
    home = parseFloat($("#home").val());
    otherH = parseFloat($("#other_estate").val());
    checking = parseFloat($("#checking").val());
    savings = parseFloat($("#savings").val());
    other = parseFloat($("#stocks").val());
    funeral = parseFloat($("#paid_funeral").val());
    if(home) total += home;
    if(otherH) total += otherH;
    if(checking) total += checking;
    if(savings) total += savings;
    if(other) total += other;
    if(funeral) total += funeral;
    $("#total_assets").val(total);
}

function getLiabilities(){
    total = 0;
    mortgage = parseFloat($("#mortgage").val());
    loans = parseFloat($("#loans").val());
    other = parseFloat($("#other_liabilities").val());
    if(mortgage) total += mortgage;
    if(loans) total += loans;
    if(other) total += other;
    $("#total_liabilities").val(total);
}


