if (doc["soldDate"].size() > 0) { return doc["soldDate"].value.getMillis() - doc["created"].value.getMillis() }