<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def prepare_date(data, schema):
 """Converts datetime.date to int timestamp"""

    if isinstance(data, datetime.date):
        return data.toordinal() - DAYS_SHIFT
    else:
        return data