Add a helper function to compute scaling factors for combining timedelta64 and datetime64