Skip to content

Instantly share code, notes, and snippets.

@dima-thumbtack
Created June 6, 2018 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dima-thumbtack/045ba3c4065ff51ca4004aa53ce11205 to your computer and use it in GitHub Desktop.
Save dima-thumbtack/045ba3c4065ff51ca4004aa53ce11205 to your computer and use it in GitHub Desktop.
val timeToCustomerContact = timeDiff[AnalyticsQuote, Long](_.sent_time, _.first_customer_contact_time)
val customerContactWithin3Days = lessThan[AnalyticsQuote, Long](timeToCustomerContact(_), 86400*1000*3)
val CustomerContactsWithin3Days = countIf[AnalyticsQuote](customerContactWithin3Days(_))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment