def from_ymd_to_excel(year, month, day):
if not is_valid_ymd(year, month, day):<EOL><INDENT>raise ValueError("<STR_LIT>".format(year, month, day))<EOL><DEDENT>days = _cum_month_days[month - <NUM_LIT:1>] + day<EOL>days += <NUM_LIT:1> if (is_leap_year(year) and month > <NUM_LIT:2>) else <NUM_LIT:0><EOL>years_distance = year - <NUM_LIT><EOL>days += years_distance * <NUM_LIT> +(years_distance + <NUM_LIT:3>) // <NUM_LIT:4> - (years_distance + <NUM_LIT>) // <NUM_LIT:100> + (years_distance + <NUM_LIT>) // <NUM_LIT><EOL>days += <NUM_LIT:1> if (year, month, day) > (<NUM_LIT>, <NUM_LIT:2>, <NUM_LIT>) else <NUM_LIT:0><EOL>return days<EOL>
converts date as `(year, month, day)` tuple into Microsoft Excel representation style

:param tuple(int, int, int): int tuple `year, month, day`
:return int: