Charitable Mileage Calculator 2014


hook(‘main_before’); ?>

hook(‘content_before’); ?>

hook(‘post’); ?>

Distance driven (A): miles
Compensation per mile (B): $

123456.78
//123,456.78 -> 123455.78
$length = strlen($number);
$numbers = “0123456789.,”;
$rez = “”; //.(string)$length;
$firstDecimal = “0”;
for( $counter = $length; $counter > 0; $counter– ){
$character = substr($number, $counter-1, 1);
$numberOrDelimeter = strpos($numbers, $character);
if ($numberOrDelimeter>=0){
if($numberOrDelimeter >= 10){
if($firstDecimal == “0”){
$firstDecimal = “1”;
$rez = “.” . $rez ;
}
}
else{
$rez = $character . $rez ;
}
}
}
return $rez;
}
$businessMileage = $distanceDriven * $compensationPerMile;
$businessMileage = round($businessMileage, 2);
ECHO “Distance driven (A) = $distanceDriven miles
“;
ECHO “Compensation per mile (B) = $compensationPerMile $

“;
ECHO “Charitage mileage = $businessMileage $

“;
ECHO “Formula
“;
ECHO “Charitage mileage = Distance driven (A) * Compensation per mile (B)
“;
ECHO “
“;
?>

Car expenses. You can deduct as a charitable contribution any unreimbursed outofpocket expenses, such as the cost of gas and oil, directly related to the use of your car in giving services to a charitable organization. You cannot deduct general repair and maintenance expenses,
depreciation, registration fees, or the costs of tires or insurance.

If you do not want to deduct your actual expenses, you can use a standard mileage rate of 14 cents a mile to figure your contribution.
You can deduct parking fees and tolls whether you use your actual expenses or the standard mileage rate.
You must keep reliable written records of your car expenses..