-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcept_footer.php
107 lines (101 loc) · 7.5 KB
/
cept_footer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php
echo "<table border=\"1\">
<tr><td>KEY</td><td>VALUE</td></tr>";
$h = 0;
$i = 0;
foreach($_POST as $key => $value) {
if($value != "") {
echo "<tr>";
echo "<td>";
echo $key;
echo "</td>";
echo "<td>";
echo $value;
echo "</td>";
echo "</tr>";
$h++;
}
$i++;
}
echo "<tr><td>Total InFields: </td><td>$h</td></tr>";
echo "<tr><td>Total Fields: </td><td>$i</td></tr></table>";
?>
<?php
//PLACEHOLDER FOR FIGURIN' PARTS . . .
//Cost of Living
//SELECT == type_name, adults.working.children
//FROM == expense_allowances
//WHERE == county_name=cl_county AND city_name=cl_city AND adults.working.children == a.$a.w.$w.c.$c == adults.number of adults.working.number working.children.number of children
//echo "<br>Cost of Living == ".$costofliving."<br>";
//echo "<br><br>";
//echo "SELECT type_name, ".$awc." FROM expense_allowances WHERE county_name=\"".$county."\" AND state_name=\"".$state."\";";
echo "<br><br>";
//echo "In a home with ".$adults." adults where ".$working." are working and have ".$children." children.<br><br>";
echo "<table border=\"1\">";
echo "<tr><td colspan=2>SNAP/TANF calculations</td></tr>";
echo "<tr><td>Gross Income Limit Amount:</td><td>" . number_format($gross_income_limit_amount) . "</td></tr>";
echo "<tr><td>Vehicle Equity Allowance:</td><td>" . number_format($vehicle_equity_allowed) . "</td></tr>";
echo "<tr><td>Total Value of Assets:</td><td>" . number_format($total_value_assets) . "</td></tr>";
echo "<tr><td>Adjusted Value of Assets:</td><td>" . number_format($adjusted_asset_value) . "</td></tr>";
echo "<tr><td>Resource Limit Amount:</td><td>" . number_format($resource_limit_amount) . "</td></tr>";
echo "<tr><td>First Adult Deduction:</td><td>" . number_format($first_adult_deduct) . "</td></tr>";
echo "<tr><td>Second Adult Deduction:</td><td>" . number_format($second_adult_deduct) . "</td></tr>";
echo "<tr><td>Adults with Part-time Work:</td><td>" . number_format($cl_adults_PT) . "</td></tr>";
echo "<tr><td>Adults with Full-time Work:</td><td>" . number_format($cl_adults_FT) . "</td></tr>";
echo "<tr><td>Childcare Paid:</td><td>" . number_format($ChildcareAmount) . "</td></tr>";
echo "<tr><td>Adults Full-time Work Childcare Under 2 Deduct Amount:</td><td>" . number_format($deductFT_childcareunder2_amount) . "</td></tr>";
echo "<tr><td>Adults Full-time Work Childcare 2 and Over Deduct Amount:</td><td>" . number_format($deductFT_childcareover2_amount) . "</td></tr>";
echo "<tr><td>Children 2 and Over:</td><td>" . number_format($children_over2) . "</td></tr>";
echo "<tr><td>Children Under 2:</td><td>" . number_format($children_under2) . "</td></tr>";
echo "<tr><td>Childcare Full-time Deduction:</td><td>" . number_format($childcare_FTmax_deduction) . "</td></tr>";
if(isset($deductPT_childcareunder2_amount)) {
echo "<tr><td>Adults Part-time Work Childcare Under 2 Deduct Amount:</td><td>" . number_format($deductPT_childcareunder2_amount) . "</td></tr>";
}
if(isset($deductPT_childcareover2_amount)) {
echo "<tr><td>Adults Part-time Work Childcare 2 and Over Deduct Amount:</td><td>" . number_format($deductPT_childcareover2_amount) . "</td></tr>";
}
echo "<tr><td>Childcare Part-time Deduction:</td><td>" . number_format($childcare_PTmax_deduction) . "</td></tr>";
echo "<tr><td>Total Income:</td><td>" . number_format($TotalIncome) . "</td></tr>";
echo "<tr><td>Maximum Childcare Deduction:</td><td>" . number_format($childcare_max_deduction) . "</td></tr>";
echo "<tr><td>Earned Income Disregard:</td><td>" . number_format($earned_income_disregard_amount) . "</td></tr>";
echo "<tr><td>Sum Income Deductions:</td><td>" . number_format($sumIncomeDeductions) . "</td></tr>";
echo "<tr><td>Countable Income:</td><td>" . number_format($CountableIncome) . "</td></tr>";
echo "<tr><td>Number of Household Members:</td><td>" . number_format($people_count) . "</td></tr>";
echo "<tr><td>Additional Family Amount:</td><td>" . number_format($additional_family_amount) . "</td></tr>";
echo "<tr><td>Gross Income Limit Amount:</td><td>" . number_format($gross_income_limit_amount) . "</td></tr>";
echo "</table>";
echo "<br><br>";
echo "<table border=\"1\">";
echo "<tr><td colspan=2>TANF RESULTS</td></tr>";
echo "<tr><td>Gross Income:</td><td>" . number_format($TotalIncome) . "</td></tr>";
echo "<tr><td>First Adult Deductions:</td><td>" . number_format($first_adult_deduct) . "</td></tr>";
echo "<tr><td>Second Adult Deductions:</td><td>" . number_format($second_adult_deduct) . "</td></tr>";
echo "<tr><td>Child Support Paid:</td><td>" . number_format($deduct_childsupport_amount) . "</td></tr>";
echo "<tr><td>Income Expenses Paid:</td><td>" . number_format($deduct_incomeexpenses_amount) . "</td></tr>";
echo "<tr><td>Dependent Care Cost:</td><td>" . number_format($childcare_max_deduction) . "</td></tr>";
echo "<tr><td>Child Support Received for 1 Child:</td><td>" . number_format($child_support_received1_amount) . "</td></tr>";
echo "<tr><td>Child Support Received for 2 or more Children:</td><td>" . number_format($child_support_received2_amount) . "</td></tr>";
echo "<tr><td>Medical Expenses for Elderly/Disabled:</td><td>" . number_format($medical_elderly_disabled_amount) . "</td></tr>";
echo "<tr><td>Earned Income Disregard:</td><td>" . number_format($earned_income_disregard_amount) . "</td></tr>";
echo "<tr><td>Countable Income:</td><td>" . number_format($CountableIncome) . "</td></tr>";
echo "<tr><td>Family Size Lookup:</td><td>" . $fpig85familysize . "</td></tr>";
echo "<tr><td>Additional Family Amount:</td><td>" . number_format($additional_family_amount) . "</td></tr>";
echo "<tr><td>Gross Income Limit Amount:</td><td>" . number_format($gross_income_limit_amount) . "</td></tr>";
echo "<tr><td>Gross Income Test:</td><td>" . $gross_income_test . "</td></tr>";
echo "<tr><td>Child Test:</td><td>" . $child_test . "</td></tr>";
echo "<tr><td>Family Size 8 or less:</td><td>" . $family_size_lookup . "</td></tr>";
echo "<tr><td>Additional Family Size >8:</td><td>" . $add_family_lookup . "</td></tr>";
echo "<tr><td>Standard of Need up to 8 Total:</td><td>" . number_format($fpig100) . "</td></tr>";
echo "<tr><td>Standard of Need >8 Total:</td><td>" . number_format($additional_family_amount) . "</td></tr>";
echo "<tr><td>Standard of Need Total:</td><td>" . number_format($standard_of_need_total) . "</td></tr>";
echo "<tr><td>Countable Income:</td><td>" . number_format($CountableIncome) . "</td></tr>";
echo "<tr><td>Standard of Need Test:</td><td>" . $standard_of_need_test . "</td></tr>";
echo "<tr><td>Eligibility Based on Resources:</td><td>EXCLUDED</td></tr>";
echo "<tr><td>Eligibity Test:</td><td>" . $Resource_Test_Passed . "</td></tr>";
echo "<tr><td>Monthly Benefit up to 8:</td><td>" . number_format($Monthly_Benefit_Amount) . "</td></tr>";
echo "<tr><td>Monthly Benefit >8:</td><td>" . number_format($Monthly_Benefit_AddFam) . "</td></tr>";
echo "<tr><td>Total Monthly Benefit:</td><td>" . number_format($Total_MaxMonthly_Benefit) . "</td></tr>";
echo "</table>";
echo "<br><br>";
//echo "Childcare Amount = ".$ChildcareAmount."<br>";
//echo "Total Income =".$TotalIncome."<br>first_adult_deduct = ".$first_adult_deduct."<br>second_adult_deduct = ".$second_adult_deduct."<br>deduct_childsupport_amount = ".$deduct_childsupport_amount."<br>deduct_incomeexpenses_amount = ".$deduct_incomeexpenses_amount."<br>childcare_max_deduction = ".$childcare_max_deduction."<br>child_support_received_amount = ".$child_support_received_amount."<br>child_support_deduct_amount = ".$child_support_deduct_amount."<br>medical_elderly_disabled_amount = ".$medical_elderly_disabled_amount."<br>earned_income_disregard_amount = ".$earned_income_disregard_amount."<br>";