# We need to get the days, so we use input to accomplish this.

list = input ( 'Enter today \' s date. Examples: 12/25/2015, 01/01/2016' )

month = list [ 0 : 2 ]

day = list [ 3 : 5 ]

year = list [ 6 : 12 ]

list2 = input ( 'Enter a future date. Examples: 12/25/2015, 01/01/2016' )

month2 = list2 [ 0 : 2 ]

day2 = int ( list2 [ 3 : 5 ] )

year2 = list2 [ 6 : 12 ]

"""This is the end-of-month area. For example, if you ask it to compute the days

between 12/31/15 and 01/01/16, it will come up with 1 year -11 months -30

days without this area."""

if int ( day2 ) - int ( day ) < 0 :

month2 = int ( month2 ) - 1

if int ( month ) == 9 or int ( month ) == 4 or int ( month ) == 6 or int ( month ) == 11 :

day2 = day2 + 30

else :

if int ( month2 ) == 2 :

if int ( year2 ) % 4 == 0 and int ( year2 ) % 100 != 0 :

day2 = int ( day2 ) + 29

else :

day2 = int ( day2 ) + 28

else :

day2 = int ( day2 ) + 31

if int ( month2 ) - int ( month ) < 0 :

year2 = int ( year2 ) - 1

month2 = int ( month2 ) + 12

# This next line is what displays the days.