You are attempting to take the SECONDS since the Unix Epoch of January 1, 1970 and divide it by DAYS to resolve the equivalent of TO_DAYS...which would be:
UNIX_TIMESTAMP / (24hrs 60mins 60 secs)
not
UNIX_TIMESTAMP / (24 * 60)
altering your algorithm might produce likelier results
but remember that this is the calculation of DAYS since Jan. 1 , 1970, not Jan. 1, A.D. 0 of the gregorian calendar, so you will need to take that into account the 719528 days difference (according to MySQL "SELECT TO_DAYS('1970-01-01')")