.calc-card {
background: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 8px;
padding: 25px;
margin-bottom: 30px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.calc-title {
text-align: center;
color: #2c3e50;
margin-bottom: 25px;
font-size: 24px;
font-weight: 700;
}
.form-group {
margin-bottom: 20px;
}
.form-label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: #495057;
}
.form-input {
width: 100%;
padding: 12px;
border: 1px solid #ced4da;
border-radius: 4px;
font-size: 16px;
box-sizing: border-box;
transition: border-color 0.15s ease-in-out;
}
.form-input:focus {
border-color: #4dabf7;
outline: none;
box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.25);
}
.form-select {
width: 100%;
padding: 12px;
border: 1px solid #ced4da;
border-radius: 4px;
font-size: 16px;
background-color: white;
box-sizing: border-box;
cursor: pointer;
}
.calc-btn {
display: block;
width: 100%;
background-color: #007bff;
color: white;
border: none;
padding: 14px;
font-size: 18px;
font-weight: 600;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s;
margin-top: 10px;
}
.calc-btn:hover {
background-color: #0056b3;
}
.result-box {
margin-top: 25px;
background: #ffffff;
border: 1px solid #dee2e6;
border-radius: 4px;
padding: 20px;
text-align: center;
display: none;
}
.result-value {
font-size: 32px;
font-weight: bold;
color: #28a745;
margin: 10px 0;
}
.result-label {
color: #6c757d;
font-size: 14px;
text-transform: uppercase;
letter-spacing: 1px;
}
.rate-info {
margin-top: 10px;
font-size: 14px;
color: #666;
font-style: italic;
}
.article-content h2 {
color: #2c3e50;
margin-top: 30px;
border-bottom: 2px solid #eee;
padding-bottom: 10px;
}
.article-content h3 {
color: #34495e;
margin-top: 25px;
}
.article-content ul {
padding-left: 20px;
}
.article-content li {
margin-bottom: 10px;
}
.rates-table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
}
.rates-table th, .rates-table td {
border: 1px solid #ddd;
padding: 12px;
text-align: left;
}
.rates-table th {
background-color: #f2f2f2;
font-weight: bold;
}
@media (max-width: 600px) {
.calc-card {
padding: 15px;
}
.result-value {
font-size: 26px;
}
}
Understanding the 2017 Mileage Reimbursement Rates
Calculating vehicle expenses for tax deductions or employer reimbursements requires adhering to the specific Internal Revenue Service (IRS) rates established for the tax year in question. This calculator is specifically designed for the 2017 tax year (Jan 1, 2017 – Dec 31, 2017).
Official 2017 IRS Standard Mileage Rates
For 2017, the standard mileage rates for the use of a car (also vans, pickups, or panel trucks) were as follows:
| Purpose |
Rate per Mile |
| Business |
53.5 cents ($0.535) |
| Medical & Moving |
17 cents ($0.17) |
| Charitable Organizations |
14 cents ($0.14) |
It is important to note that the business mileage rate for 2017 decreased by 0.5 cents from the 2016 rate of 54 cents per mile. The medical and moving expense rates also decreased by 2 cents from the 2016 rate of 19 cents.
When to Use This Calculator
This tool is essential for taxpayers filing amended returns for the 2017 tax year, or for businesses auditing past expense reports. Ensure that the dates of your travel occurred strictly between January 1, 2017, and December 31, 2017. Rates change annually, and using the 2017 rate for travel in other years will result in calculation errors.
Calculation Logic
The calculation is straightforward but requires precision with decimals.
- Business: Multiply total miles by $0.535.
- Medical/Moving: Multiply total miles by $0.17.
- Charity: Multiply total miles by $0.14.
For example, if you drove 1,000 miles for business purposes in 2017, your deduction or reimbursement would be 1,000 × $0.535 = $535.00.
function calculateReimbursement() {
// Get input values
var milesInput = document.getElementById("totalMiles").value;
var purposeSelect = document.getElementById("drivePurpose").value;
var resultBox = document.getElementById("resultBox");
var resultDisplay = document.getElementById("reimbursementResult");
var rateDisplay = document.getElementById("rateApplied");
// Validate input
if (milesInput === "" || isNaN(milesInput) || parseFloat(milesInput) < 0) {
alert("Please enter a valid number of miles.");
return;
}
var miles = parseFloat(milesInput);
var rate = 0;
var rateText = "";
// Determine rate based on purpose (2017 IRS Rates)
if (purposeSelect === "business") {
rate = 0.535; // 53.5 cents
rateText = "$0.535";
} else if (purposeSelect === "medical_moving") {
rate = 0.17; // 17 cents
rateText = "$0.17";
} else if (purposeSelect === "charitable") {
rate = 0.14; // 14 cents
rateText = "$0.14";
}
// Calculate total
var totalReimbursement = miles * rate;
// Display results
resultDisplay.innerHTML = "$" + totalReimbursement.toLocaleString('en-US', {minimumFractionDigits: 2, maximumFractionDigits: 2});
rateDisplay.innerHTML = "Rate Applied: " + rateText + " per mile (2017 Standard)";
// Show result box
resultBox.style.display = "block";
}