Menu

#76 Leap Year Bug in Cap Gain Holding Period

v1.0 (example)
closed-fixed
nobody
None
5
2020-01-03
2019-07-18
Norman Leet
No

There is rare buy/sell date combination for which OTS generates an
incorrect Capital Gains Holding Period.
Example:
Buy Date 2-28-2015
Sell Date 2-29-2016 (2016 is a Leap Year)
IRS verbiage on the holding period is to start counting the day
following the purchase date, which would be 3-01-2015
(not a leap year). The 1 year holding period occurs on the
day preceeding 3-01-2016 (i.e. one calendar year), which
is 2-29-2016 (a leap year). So, the above Buy/Sell Date combination
is a holding period of one year, and it is a short term gain.
OTS reports this date combination as a Long Term Gain.
If anyone with commercial tax prep software can validate the above dates
as a short term gain, it would help to confirm my observation.

Attached Files:
OTS_Leap_Year_Problem.pdf   -  Problem description and fix
US_Fed_1040_leap.txt  -  OTS input file to demonstrate the leap year problem
taxsolve_US_1040_2018.pdf  - Annotated Source Code Changes
taxsolve_routines.pdf    - Annotated Source Code Changes
US_Fed_1040_chk.txt - OTS input file to check new code 
US_Fed_1040_Bad_Date_chk.txt - OTS input file to demo enhanced Bad Date Error Message   
taxsolve_US_1040_2018.diff - diff file is against OTS r43
taxsolve_routines.diff     - diff file is against OTS r43

    Refs:

https://certent.com/tax-holding-periods-and-leap-year/
https://www.naspp.com/blog/2016/03/tax-holding-periods-and-leap-year

-Norm Leet
8 Attachments

Discussion

  • John Morgan

    John Morgan - 2019-10-02

    The work around is to close the stock market every February 29. : -)

     
  • Aston Roberts

    Aston Roberts - 2020-01-03
    • status: open --> closed-fixed
     
  • Aston Roberts

    Aston Roberts - 2020-01-03

    Fixed accepted and incorporated in upcoming update.
    Thanks!
    -- Aston

     

Log in to post a comment.

MongoDB Logo MongoDB