#NEWLINE# @ outputSchema ( 'days_since_release:int' ) #NEWLINE# def days_since_release( date ) : #NEWLINE# #INDENT# '\n   Calculate the number of days since the titles release\n   ' #NEWLINE# if ( release_date is None ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# today = datetime . today ( ) #NEWLINE# release_date = datetime . strptime ( date , '%d-%b-%Y' ) #NEWLINE# delta = ( today - release_date ) #NEWLINE# return delta . days