[dates and mileage]

You need to keep a mileage log and proof of mileage when claiming vehicle expenses. This documentation may be requested if your return is examined.

Unfortunately people do not get their vehicle serviced on January 1st of each year; so I often needed to extrapolate or interpolate their total mileage. The math is not hard, but can be repetitive, and after I did the math, it needed to be documented. I decided to save myself some time.

The form below can be used to provide short blurbs which can be copied into our documentation, it gave me some practice programming, and provides some useful information about dates. I hope you find it useful.

The library used for dates will assume the dates are between 1/1/1969 and 12/31/2068.

Minimal error checking is done to prevent exploits but this is not reflected in output, in other words, garbage in gives garbage out.

I updated the code to accept 4 digit years as well. It ignores the change from the Julian to the Gregorian calendar. I don't anticipate examining any cases with records going back to 1582.

If they incur allowable mileage for the entire year, you may want to use the average rate for that year if the rates differ. Keep in mind that it is quite possible that someone may have ended a business or medical treatment before mid-year or started it after mid-year. You should use appropriate rates. This page is designed to show the average for the full year only. Pro-rate mileage accordingly if necessary, that is, multiply by days worked and divide by the number of days in the year. You can get the number of days between two dates and check if it is a leap year by plugging the start and end dates of the business into Date 1 and Date 2, plugging in the Year, and leaving the Mileage amounts blank.

I make an effort to update this page each year by adding the rates and setting the defaults to figures relevant to material that is currently being worked. If you are interested in source code please see
https://mcsuper5.freeshell.org/programs.html.


Standard Mileage Rates

Year Business Medical/Moving Charity
Before
7/1
After
6/30
Before
7/1
After
6/30
2009 $0.55 $0.55 $0.24 $0.24 $0.14
2010 $0.50 $0.50 $0.165 $0.165 $0.14
2011 $0.51 $0.555 $0.19 $0.19 $0.14
2012 $0.555 $0.555 $0.23 $0.23 $0.14
2013 $0.565 $0.565 $0.24 $0.24 $0.14
2014 $0.56 $0.56 $0.235 $0.235 $0.14
2015 $0.575 $0.575 $0.23 $0.23 $0.14
2016 $0.54 $0.54 $0.19 $0.19 $0.14
2017 $0.535 $0.535 $0.17 $0.17 $0.14
2018 $0.545 $0.545 $0.18 $0.18 $0.14
2019 $0.58 $0.58 $0.20 $0.20 $0.14
2020 $0.575 $0.575 $0.17 $0.17 $0.14
2021 $0.56 $0.56 $0.16 $0.16 $0.14
2022 $0.585 $0.625 $0.18 $0.22 $0.14
2023 $0.655 $0.655 $0.22 $0.22 $0.14
2024 $0.67 $0.67 $0.21 $0.21 $0.14

Date 1: Mileage 1:
Date 2: Mileage 2:
Output: html text Year:
Business mileage: Dollars/mile:

Saturday, 13 April 2024   Michael J. Chappell   Contact me at: mcsuper5@freeshell.org Made with Emacs