if ($seq == "2") {
#$output = shell_exec("./district $parcel");
if ($debug) {
$output = shell_exec("./test $parcel");
} else {
$output = shell_exec("./district $parcel");
}
$output = str_replace(array( '[', ']' ), '', $output);
$array = array();
foreach(preg_split("/((\r?\n)|(\r\n?))/", $output) as $line) {
$size = strlen($line);
if ($size >> 5) {
// do stuff with $line
$array[] = str_getcsv($line);
//print "|$line|\n";
}
}
$list = array_shift($array[1]);
$zytotal = array_pop($array[2]);
$zytotal = trim(str_replace("'","",$zytotal));
//print_r($array);
//some values brought over:
$MyAddress = $array[0][0];
$MyAddress = trim(str_replace("'","",$MyAddress));
$MyCity = $array[0][1];
$MyCity = trim(str_replace("'","",$MyCity));
$MyCity = str_replace('\' ', '\'', ucwords(str_replace('\'', '\' ', strtolower($MyCity))));
$MyCTC = $array[0][2];
$MyMarket = $array[0][3];
$MyMarket = trim(str_replace('$','',$MyMarket));
$MyMarket = trim(str_replace("'","",$MyMarket));
$MyTaxable = $array[0][4];
$MyTaxable = trim(str_replace('$','',$MyTaxable));
$MyTaxable = trim(str_replace("'","",$MyTaxable));
$MyDistrict = $array[0][5];
$pieces = explode("-", $MyDistrict);
$MyDistrict = $pieces[1];
$MyDistrict = trim(str_replace("'","",$MyDistrict));
#$MyDistrict = preg_replace('/[\x00-\x1F\x7F]/', '', $MyDistrict);
?>
//end the if seq = 2
}
?>
Nordonia Tax Calculator
by Jeff Garvas
SCRIPT IS IN DEBUG MODE
";
}
$db = new SQLite3('taxes.db');
//take commas out of values
$income1 = str_replace(',', '', $income1);
$income2 = str_replace(',', '', $income2);
$house = str_replace(',', '', $house);
//if income1 and city are not both defined, error.
if ($seq > 2) {
if (($income1 < 1) || ($city == "blank")) {
// $seq="";
$error = "Taxpayer 1 fields must be populated to proceed
";
}
if (($ownhome != "yes") && ($ownhome != "no")) {
// $seq="";
$error = $error . "You must indicate if you own a home or not
";
}
$house = number_format((float)$house, 2, '.', '');
$income1 = number_format((float)$income1, 2, '.', '');
$income2 = number_format((float)$income2, 2, '.', '');
//log the tweet and who did it
//$logfile = 'hitlog.txt';
//$remip = $_SERVER['REMOTE_ADDR'];
// set the default timezone to use. Available since PHP 5.1
//date_default_timezone_set('America/New_York');
//$date = date('D M d h:i:s');
//$logstr = $remip . "," . $livehere . "," . $ownhome . "," . $house . "," . $city . "," . $income1 . "," . $spcity . "," . $income2 . "," . $address . "," . $rescity . "," . $market . "," . $taxable . "," . $district . "," . $i3annual . "," . $i8annual . "," . $fireprottot . "," . $allprop . "," . $i43annual . "," $i45annual;
//$txt = $date.": " . $logstr;
//$myfile = file_put_contents($logfile, $txt.PHP_EOL , FILE_APPEND | LOCK_EX);
/// add a tracking entry
//$sql = "INSERT INTO stats VALUES(datetime('now','localtime','+3 hours'),'$remip','$livehere','$ownhome','$house','$city','$income1','$spcity','$income2')";
//$db->prepare($sql);
//$db->exec($sql);
//debug
}
if ($seq > 1) {
// Property tax
// This is now OUTSIDE of the "Live Here" if() inside the hidden = 3 final display block
// right here we need to do property tax display ouput:
// street should be passed into stage2 in $street
//$sql = "SELECT address FROM parcels WHERE parcel = '" . $parcel . "'";
//$street = $db->querySingle($sql);
echo "
";
echo "Property Tax Analysis For: $street (Summit county parcel #$parcel)
";
echo "Your current property tax bill of $$countytotal* is allocated as shown in the first graph:";
?>
echo "$MyCity's share of $$comtotal (from above) is allocated as shown in this graph:";
?>
echo "Source: This Summit County Fiscal Office --> Tax Distribution page for parcel $parcel. (Full parcel details can also be verified here)
";
echo "
";
echo "Levies: What May 7th property tax levies might change your property tax liability?
";
$ThisMarket = number_format($MyMarket);
$ThisTaxable = number_format($MyTaxable);
?>
Resident City: = $rescity ?>
Address: = $MyAddress ?>
Market Value: $= $ThisMarket ?>
Taxable (35%): $= $ThisTaxable?>
School District: = $MyDistrict ?>
if ($issue3) {
$i3annual = $MyTaxable / 100 * .698;
$AllProp = $AllProp + $i3annual;
$i3monthly = $i3annual / 12;
$i3annual = number_format((float)$i3annual, 2, '.', '');
$i3monthly = number_format((float)$i3monthly, 2, '.', '');
$totalcsd = $i3annual + $curcsd;
$i3percent = $i3annual / $curcsd;
$i3percent = $i3percent * 100;
$i3percent = number_format((float)$i3percent, 2, '.', '');
?>
Issue 3: This NEW levy applies to your property based on your school district - Permanent
Ballot Language: "An additional tax for the benefit of the Nordonia Hills City School District for the purpose of current expenses at a rate not exceeding 6.98 mills for each one dollar of valuation, which amounts to 69.8 cents for each one hundred dollars of valuation, for a continuing period of time, commencing in 2019, first due in calendar year 2020"
If Issue 3 passes:
Your property tax will increase by roughly $= $i3monthly ?> per month, or $= $i3annual ?> annually.
Since Issue 3 is a net new tax, your total annual = $MyDistrict ?> tax liability would increase by = $i3percent ?>% from $= $curcsd ?> to $= $totalcsd ?> annually.
Since Issue 3 is a permanent levy it will never expire.
If Issue 3 fails:
Your property tax will not decrease, as there is no renewal component to Issue 3.
}
$AllProp = number_format((float)$AllProp, 2, '.', '');
?>
The Math: How we calculated the estimated tax increases above
Each property tax issue implies that it will cost a property owner a certain amount of money for every $100 dollars in valuation of their property in the school district. For the purposes of this calculation the taxable value of your property is 35% of your market value ($= $ThisMarket ?>), or $= $ThisTaxable ?>. We are dividing that taxable value by 100 (to determine how many 100's of valuation exist) and multiply the result by the millage rate of each levy as indicated in it's ballot language. These values are speculative, estimated, and a best effort calculation that is subject to human error.
Since Issue 3 applies to the entire school district, (and its the only property tax issue on the ballot) we'll illustrate it as an example using .698 for it's 6.98 mill rate:
$TempTaxable = trim(str_replace(",","",$ThisTaxable));
$hundreds = $TempTaxable / 100;
?>
$= $ThisTaxable ?> / 100 = $=$hundreds ?> * .698 = $= $i3annual ?>/annually / 12 = $= $i3monthly ?>/monthly
// since we're at the end, log:
/// add a tracking entry
// address
// rescity
// market
// taxable
// district
// i3annual
// i8annual
// fireprottot
// allprop
// i43annual
// i45annual
//log the tweet and who did it
$logfile = 'hitlog.txt';
$remip = $_SERVER['REMOTE_ADDR'];
// set the default timezone to use. Available since PHP 5.1
date_default_timezone_set('America/New_York');
$date = date('D M d h:i:s');
$ThisTaxable = trim(str_replace(",","",$ThisTaxable));
$ThisMarket = trim(str_replace(",","",$ThisMarket));
$i3annual = trim(str_replace(",","",$i3annual));
$i8annual = trim(str_replace(",","",$i8annual));
$fireprottot = trim(str_replace(",","",$fireprottot));
$allprop = trim(str_replace(",","",$allprop));
$i43annual = trim(str_replace(",","",$i43annual));
$i45annual = trim(str_replace(",","",$i45annual));
$logstr = $remip . "," . $livehere . "," . $ownhome . "," . $house . "," . $city . "," . $income1 . "," . $spcity . "," . $income2 . "," . $MyAddress . "," . $rescity . "," . $ThisMarket . "," . $ThisTaxable . "," . $MyDistrict . "," . $i3annual . "," . $i8annual . "," . $fireprottot . "," . $allprop . "," . $i43annual . "," . $i45annual . "," . $parcel . "," . $captcha;
$txt = $date.": " . $logstr;
$myfile = file_put_contents($logfile, $txt.PHP_EOL , FILE_APPEND | LOCK_EX);
$sql = "INSERT INTO stats VALUES(datetime('now','localtime','+3 hours'),'$remip','$livehere','$ownhome','$house','$city','$income1','$spcity','$income2','$MyAddress','$rescity','$ThisMarket','$ThisTaxable','$MyDistrict','$i3annual','$i8annual','$fireprottot','$allprop','$i43annual','$i45annual','$parcel')";
//$db->prepare($sql);
//$db->exec($sql);
// this is the end of the seq=2 (post address chosen)
}